-
Notifications
You must be signed in to change notification settings - Fork 447
Fix broken code blocks on the issue new tokens per request pages #6328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,11 +7,11 @@ | |
| This feature issues a new access token and refresh token for each token | ||
| request after revoking the existing active token. | ||
|
|
||
| ### Try it out | ||
|
Check failure on line 10 in en/identity-server/5.11.0/docs/learn/issuing-new-tokens-per-request.md
|
||
|
|
||
| Add the following configuration to the ` deployment.toml ` file in | ||
|
Check failure on line 12 in en/identity-server/5.11.0/docs/learn/issuing-new-tokens-per-request.md
|
||
| ` <is_home>/repository/conf/ ` to enable issuing | ||
|
Check failure on line 13 in en/identity-server/5.11.0/docs/learn/issuing-new-tokens-per-request.md
|
||
| a new token per request ` . ` | ||
|
Check failure on line 14 in en/identity-server/5.11.0/docs/learn/issuing-new-tokens-per-request.md
|
||
|
|
||
| ``` java | ||
| [oauth.token_renewal] | ||
|
|
@@ -22,13 +22,13 @@ | |
| If the [OAuthTokenGenerator extension | ||
| point](../../learn/extension-points-for-oauth) | ||
| is used, it overrides the value of | ||
| ` renew_access_token_per_request ` . Here, the code level changes | ||
|
Check failure on line 25 in en/identity-server/5.11.0/docs/learn/issuing-new-tokens-per-request.md
|
||
| take precedence over our configuration change. Hence, this configuration | ||
| will not affect the flow of self-contained access tokens, which by | ||
| default renew access tokens for every request. This will not affect the | ||
| flow of the refresh token grant type either, which renews the access | ||
| token by default, and the refresh token depending on the | ||
| ` renew_access_token_per_request ` configuration in the | ||
|
Check failure on line 31 in en/identity-server/5.11.0/docs/learn/issuing-new-tokens-per-request.md
|
||
| ` deployment.toml ` file. | ||
|
|
||
|
|
||
|
|
@@ -50,7 +50,9 @@ | |
|
|
||
| Given below are the responses to the first and the second requests. | ||
|
|
||
| ``` java tab="Response to the first call" | ||
| **Response to the first call** | ||
|
|
||
| ``` java | ||
| { | ||
| "access_token": "ed074839-7efc-3c07-a5a0-a06382eba5ac", | ||
| "refresh_token": "faecb739-b065-305e-8233-fa2e9d94c10e", | ||
|
|
@@ -60,7 +62,9 @@ | |
| } | ||
| ``` | ||
|
|
||
| ``` java tab="Response to the second call" | ||
| **Response to the second call** | ||
|
|
||
| ``` java | ||
| { | ||
| "access_token": "1f00293e-278e-3326-89e3-eef2fcbf8b6b", | ||
| "refresh_token": "c9deea6f-a440-35bf-8fac-e0a6043df2b1", | ||
|
|
@@ -73,10 +77,14 @@ | |
| You can also introspect the old access token using the following cURL | ||
| command. You can see that it is inactive now. | ||
|
|
||
| ``` java tab="Request" | ||
| curl -k -u admin:admin -H 'Content-Type: application/x-www-form-urlencoded' -X POST --data 'token=<access token from 1st token API call>'https://localhost:9443/oauth2/introspect | ||
| **Request** | ||
|
|
||
| ``` java | ||
| curl -k -u admin:admin -H 'Content-Type: application/x-www-form-urlencoded' -X POST --data 'token=<access token from 1st token API call>' https://localhost:9443/oauth2/introspect | ||
| ``` | ||
|
|
||
| ``` java tab="Response" | ||
| **Response** | ||
|
|
||
| ``` java | ||
| {'active':false} | ||
| ``` | ||
Uh oh!
There was an error while loading. Please reload this page.