A token management service. It is responsible for creating, refreshing and destroying authentication tokens. Expirable/refreshable tokens are generated using JTW and can be passed onto the client.
Install docker beta
Do a local deploy
./local_deploy.sh
Install docker toolbox (for CI tests)
$ cd service
Install dependencies
$ npm install
$ npm run test
$ npm run test:jest
$ npm run test:watch
$ npm run test:integration
$ cd service
Install dependencies
$ npm install
Start the server
$ npm start
Follow Quickstart instructions
./local_deploy.sh -d
./local_deploy.sh -n
./local_deploy.sh -dn
TODO
A health check
No parameters
{}
Create a new auth token for a user
- userId - string - an existing user id
- accessToken - string - expirable token used to authenticate requests
-
refreshToken - string - persistent token used to generate an
accessToken
- expireTime - unix timestamp - the time the access token expires
Refresh an accessToken
with the refreshToken
- userId - string - an existing user id
-
refreshToken - string - persistent token used to generate an
accessToken
- accessToken - string - expirable token used to authenticate requests
- expireTime - unix timestamp - the time the access token expires
Delete a refreshToken
so it cannot refresh an accessToken
- userId - string - an existing user id
-
refreshToken - string - persistent token used to generate an
accessToken
Empty