-
-
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: re-enable legacy client IDs (#3628)
This patch changes the primary key of the `hydra_client` table. We do not expect issues, as that table is probably not overly huge in any deployment. We do however highly recommend to test the migration performance on a staging environment with a similar database setup.
- Loading branch information
Showing
69 changed files
with
1,222 additions
and
440 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
.../.snapshots/TestHandler-common-case=create_clients-case=4-description=non-uuid_fails.json
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
.../.snapshots/TestHandler-common-case=create_clients-case=4-description=non-uuid_works.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,37 @@ | ||
{ | ||
"client_id": "not-a-uuid", | ||
"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": {}, | ||
"registration_client_uri": "http://localhost:4444/oauth2/register/not-a-uuid", | ||
"skip_consent": false, | ||
"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 | ||
} |
37 changes: 37 additions & 0 deletions
37
...andler-common-case=create_clients-case=5-description=setting_client_id_as_uuid_works.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,37 @@ | ||
{ | ||
"client_id": "98941dac-f963-4468-8a23-9483b1e04e3c", | ||
"client_name": "", | ||
"client_secret": "not too short", | ||
"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": {}, | ||
"registration_client_uri": "http://localhost:4444/oauth2/register/98941dac-f963-4468-8a23-9483b1e04e3c", | ||
"skip_consent": false, | ||
"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: 0 additions & 4 deletions
4
...ts/TestHandler-common-case=create_clients-case=5-description=setting_client_id_fails.json
This file was deleted.
Oops, something went wrong.
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.