-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow setting the access token type in client
The access token type (`jwt` or `opaque`) can now be set in the client configuration. The value set here will overwrite the global value for all flows concerning that client.
- Loading branch information
Showing
57 changed files
with
2,350 additions
and
1,547 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.bin/ | ||
.idea/ | ||
.vscode/ | ||
node_modules/ | ||
*.iml | ||
*.exe | ||
|
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
4 changes: 4 additions & 0 deletions
4
...dler-common-case=create_clients-case=1-description=basic_dynamic_client_registration.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"error": "The request was malformed or contained invalid parameters", | ||
"error_description": "It is not allowed to choose your own OAuth2 Client secret." | ||
} |
34 changes: 34 additions & 0 deletions
34
...napshots/TestHandler-common-case=create_clients-case=2-description=empty_ID_succeeds.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"client_name": "", | ||
"client_secret": "averylongsecret", | ||
"redirect_uris": [ | ||
"http://localhost:3000/cb" | ||
], | ||
"grant_types": null, | ||
"response_types": null, | ||
"scope": "offline_access offline openid", | ||
"audience": [], | ||
"owner": "", | ||
"policy_uri": "", | ||
"allowed_cors_origins": [], | ||
"tos_uri": "", | ||
"client_uri": "", | ||
"logo_uri": "", | ||
"contacts": null, | ||
"client_secret_expires_at": 0, | ||
"subject_type": "public", | ||
"jwks": {}, | ||
"token_endpoint_auth_method": "client_secret_basic", | ||
"userinfo_signed_response_alg": "none", | ||
"metadata": {}, | ||
"authorization_code_grant_access_token_lifespan": null, | ||
"authorization_code_grant_id_token_lifespan": null, | ||
"authorization_code_grant_refresh_token_lifespan": null, | ||
"client_credentials_grant_access_token_lifespan": null, | ||
"implicit_grant_access_token_lifespan": null, | ||
"implicit_grant_id_token_lifespan": null, | ||
"jwt_bearer_grant_access_token_lifespan": null, | ||
"refresh_token_grant_id_token_lifespan": null, | ||
"refresh_token_grant_access_token_lifespan": null, | ||
"refresh_token_grant_refresh_token_lifespan": null | ||
} |
4 changes: 4 additions & 0 deletions
4
...er-common-case=create_clients-case=6-description=setting_access_token_strategy_fails.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"error": "The request was malformed or contained invalid parameters", | ||
"error_description": "It is not allowed to choose your own access token strategy." | ||
} |
4 changes: 4 additions & 0 deletions
4
...dler-common-case=create_clients-case=7-description=basic_dynamic_client_registration.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"error": "The request was malformed or contained invalid parameters", | ||
"error_description": "It is not allowed to choose your own OAuth2 Client secret." | ||
} |
34 changes: 34 additions & 0 deletions
34
...napshots/TestHandler-common-case=create_clients-case=8-description=empty_ID_succeeds.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"client_name": "", | ||
"client_secret": "averylongsecret", | ||
"redirect_uris": [ | ||
"http://localhost:3000/cb" | ||
], | ||
"grant_types": null, | ||
"response_types": null, | ||
"scope": "offline_access offline openid", | ||
"audience": [], | ||
"owner": "", | ||
"policy_uri": "", | ||
"allowed_cors_origins": [], | ||
"tos_uri": "", | ||
"client_uri": "", | ||
"logo_uri": "", | ||
"contacts": null, | ||
"client_secret_expires_at": 0, | ||
"subject_type": "public", | ||
"jwks": {}, | ||
"token_endpoint_auth_method": "client_secret_basic", | ||
"userinfo_signed_response_alg": "none", | ||
"metadata": {}, | ||
"authorization_code_grant_access_token_lifespan": null, | ||
"authorization_code_grant_id_token_lifespan": null, | ||
"authorization_code_grant_refresh_token_lifespan": null, | ||
"client_credentials_grant_access_token_lifespan": null, | ||
"implicit_grant_access_token_lifespan": null, | ||
"implicit_grant_id_token_lifespan": null, | ||
"jwt_bearer_grant_access_token_lifespan": null, | ||
"refresh_token_grant_id_token_lifespan": null, | ||
"refresh_token_grant_access_token_lifespan": null, | ||
"refresh_token_grant_refresh_token_lifespan": null | ||
} |
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.