Skip to content

Commit

Permalink
refreshTokenRotation documentation block adjusted to include supporte…
Browse files Browse the repository at this point in the history
…d values
  • Loading branch information
panva committed Mar 13, 2018
1 parent 6c932c2 commit 0fc2f75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ default value:

### refreshTokenRotation

Configures if and how the OP rotates refresh tokens after they are used
Configures if and how the OP rotates refresh tokens after they are used. Supported values are 1) `"none"` when refresh tokens are not rotated and their initial expiration date is final or 2) `"rotateAndConsume"` when refresh tokens are rotated when used, current token is marked as consumed and new one is issued with new TTL, when a consumed refresh token is encountered an error is returned instead and the whole token chain (grant) is revoked.
affects: refresh token rotation and adjacent revocation

default value:
Expand Down
14 changes: 5 additions & 9 deletions lib/helpers/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,17 +492,13 @@ const DEFAULTS = {
/*
* refreshTokenRotation
*
* description: Configures if and how the OP rotates refresh tokens after they are used
* description: Configures if and how the OP rotates refresh tokens after they are used. Supported
* values are 1) `"none"` when refresh tokens are not rotated and their initial expiration date
* is final or 2) `"rotateAndConsume"` when refresh tokens are rotated when used, current token
* is marked as consumed and new one is issued with new TTL, when a consumed refresh token is
* encountered an error is returned instead and the whole token chain (grant) is revoked.
* affects: refresh token rotation and adjacent revocation
*/

// TODO:
// * supported values:
// * 'none' - refresh tokens are not rotated and their initial expiration date is final
// * 'rotateAndConsume' - refresh tokens are rotated when used, current token is marked as
// * consumed and new one is issued with new TTL, when a consumed refresh
// * token is encountered an error is returned instead and the whole token
// * chain (grant) is revoked.
refreshTokenRotation: 'rotateAndConsume',
};

Expand Down

0 comments on commit 0fc2f75

Please sign in to comment.