We're using JSON Web Tokens for Authentication so far and planning to use it for embedding Authorisation flow as well.
A common pattern with JWTs is to have a short-lived Access Token(like an hour), and use use a Refresh Token to renew the Access Token when the token lifecycle ends. This isn't some crazy security benefit (since JWTs are not meant to be used like this) but this way, at least, we're reducing the surface of the possible attack.
The Goal for this issue would be to add a /auth/refresh handler, which takes a refresh token, processes it and returns an expected response. The following would be enough to make it useful:
Here are some good starting off points:
We're using JSON Web Tokens for Authentication so far and planning to use it for embedding Authorisation flow as well.
A common pattern with JWTs is to have a short-lived Access Token(like an hour), and use use a Refresh Token to renew the Access Token when the token lifecycle ends. This isn't some crazy security benefit (since JWTs are not meant to be used like this) but this way, at least, we're reducing the surface of the possible attack.
The Goal for this issue would be to add a
/auth/refreshhandler, which takes a refresh token, processes it and returns an expected response. The following would be enough to make it useful:Here are some good starting off points: