Skip to content

Commit 9998bf6

Browse files
committed
docs: Correct tokens time scale for 2.x to 3.x migration guide
1 parent e1f741f commit 9998bf6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/misc/migrating-v2-to-v3.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ The naming of the exposed middlewares has changed to match the OAuth2 _RFC_ more
2828
Server options
2929
--------------
3030

31-
The following server options can be set when instantiating the OAuth service:
31+
The following server options can be set when instantiating the OAuth service:
3232

3333
* `addAcceptedScopesHeader`: **default true** Add the `X-Accepted-OAuth-Scopes` header with a list of scopes that will be accepted
3434
* `addAuthorizedScopesHeader`: **default true** Add the `X-OAuth-Scopes` header with a list of scopes that the user is authorized for
3535
* `allowBearerTokensInQueryString`: **default false** Determine if the bearer token can be included in the query string (i.e. `?access_token=`) for validation calls
3636
* `allowEmptyState`: **default false** If true, `state` can be empty or not passed. If false, `state` is required.
37-
* `authorizationCodeLifetime`: **default 300** Default number of milliseconds that the authorization code is active for
38-
* `accessTokenLifetime`: **default 3600** Default number of milliseconds that an access token is valid for
39-
* `refreshTokenLifetime`: **default 1209600** Default number of milliseconds that a refresh token is valid for
37+
* `authorizationCodeLifetime`: **default 300** Default number of seconds that the authorization code is active for
38+
* `accessTokenLifetime`: **default 3600** Default number of seconds that an access token is valid for
39+
* `refreshTokenLifetime`: **default 1209600** Default number of seconds that a refresh token is valid for
4040
* `allowExtendedTokenAttributes`: **default false** Allows additional attributes (such as `id_token`) to be included in token responses.
41-
* `requireClientAuthentication`: **default true for all grant types** Allow ability to set client/secret authentication to `false` for a specific grant type.
41+
* `requireClientAuthentication`: **default true for all grant types** Allow ability to set client/secret authentication to `false` for a specific grant type.
4242

4343
The following server options have been removed in v3.0.0
4444

@@ -56,7 +56,7 @@ Model specification
5656
* `generateAuthorizationCode()` is **optional** and should return a `String`.
5757
* `generateRefreshToken(client, user, scope)` is **optional** and should return a `String`.
5858
* `getAccessToken(token)` should return an object with:
59-
59+
6060
* `accessToken` (`String`)
6161
* `accessTokenExpiresAt` (`Date`)
6262
* `client` (`Object`), containing at least an `id` property that matches the supplied client
@@ -71,7 +71,7 @@ Model specification
7171
* `user` (`Object`)
7272

7373
* `getClient(clientId, clientSecret)` should return an object with, at minimum:
74-
74+
7575
* `redirectUris` (`Array`)
7676
* `grants` (`Array`)
7777

@@ -84,11 +84,11 @@ Model specification
8484
* `user` (`Object`)
8585

8686
* `getUser(username, password)` should return an object:
87-
87+
8888
* No longer requires that `id` be returned.
8989

9090
* `getUserFromClient(client)` should return an object:
91-
91+
9292
* No longer requires that `id` be returned.
9393

9494
* `grantTypeAllowed()` was **removed**. You can instead:

0 commit comments

Comments
 (0)