-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement refresh token reuse detection using a new Session store * Implement JWT refresh token rotation Instead of never expiring, 2 changes are made to refresh tokens: 1. A new refresh token is issued with each access token renewal This can serve as the basis to implement token "revocation" strategies for old refresh tokens, mitigating the impact of a stolen refresh token. 2. Refresh tokens have an expiration timestamp Paired with 1. above, this means that there is now a concept of "inactivity" baked into refresh tokens: if a user doesn't renew their access token before the refresh token expires, they will be forced to re-authenticate. This defaults to 12 hours of inactivity. Signed-off-by: Cyril Cressent <[email protected]>
- Loading branch information
Showing
15 changed files
with
311 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.