node-testswarm icon indicating copy to clipboard operation
node-testswarm copied to clipboard

Update authentication

Open dlai0001 opened this issue 12 years ago • 3 comments

Currently the recent builds of test swarm use Project Name and Token instead of username/token.

it would be nice if node-testswarm can be updated to refelect the new testswarm api changes.

dlai0001 avatar Jul 26 '13 22:07 dlai0001

This was fixed 2 months ago with 4eee6f59677de94e77dff560bf633ed85be27005 and released in v1.0.4.

The comments may say otherwise still, but the code certainly has been updated. Or did you mean something else?

Krinkle avatar Jul 27 '13 00:07 Krinkle

Yesterday, I upgraded testswarm to the latest in their git repo, then updated the node-testswarm to build 1.1.0, and I was getting

{"error":{"code":"unauthorized","info":"This action requires authorization. The token or username may be missing or invalid."}}

since then I reverted node-testswarm back to 1.0.3, and testswarm install back to commit 2a2a020. I could have something setup wrong, but the devs were telling me they ran into this issue before I did and somehow that combination was what worked.

dlai0001 avatar Jul 27 '13 00:07 dlai0001

jquery/testswarm@2a2a020 is from before the introduction of Projects in TestSwarm, and node-testswarm@v1.0.3 is compatible with that older version.

When you upgraded TestSwarm to the latest version (with projects instead of users etc.), did you:

  • Migrate your TestSwarm database schema from users to projects? (run dbUpdate.php, leave version empty).
  • Verified the auth.id and auth.token configured with node-testswarm are indeed correct (try logging in through the TestSwarm web interface).
  • Update node-testswarm to the latest version as well (v1.0.4 or later).

Krinkle avatar Jul 27 '13 17:07 Krinkle