-
-
Notifications
You must be signed in to change notification settings - Fork 964
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't assume the login challenge to be a UUID
For compatibility with ory/hydra#3515, which now encodes the whole flow in the login challenge, we cannot further assume that the challenge is a UUID.
- Loading branch information
Showing
5 changed files
with
41 additions
and
16 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
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
17 changes: 17 additions & 0 deletions
17
persistence/sql/migratest/fixtures/login_flow/cccccccc-dda4-4700-9e42-35731f2af91e.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,17 @@ | ||
{ | ||
"id": "cccccccc-dda4-4700-9e42-35731f2af91e", | ||
"oauth2_login_challenge": "challenge data", | ||
"type": "api", | ||
"expires_at": "2013-10-07T08:23:19Z", | ||
"issued_at": "2013-10-07T08:23:19Z", | ||
"request_url": "http://kratos:4433/self-service/browser/flows/login", | ||
"ui": { | ||
"action": "", | ||
"method": "", | ||
"nodes": null | ||
}, | ||
"created_at": "2013-10-07T08:23:19Z", | ||
"updated_at": "2013-10-07T08:23:19Z", | ||
"refresh": false, | ||
"requested_aal": "aal1" | ||
} |
8 changes: 8 additions & 0 deletions
8
persistence/sql/migratest/testdata/20230614205200_testdata.sql
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,8 @@ | ||
INSERT INTO selfservice_login_flows (id, nid, request_url, issued_at, expires_at, active_method, csrf_token, created_at, | ||
updated_at, forced, type, ui, internal_context, oauth2_login_challenge_data) | ||
VALUES ('cccccccc-dda4-4700-9e42-35731f2af91e', | ||
'884f556e-eb3a-4b9f-bee3-11345642c6c0', | ||
'http://kratos:4433/self-service/browser/flows/login', | ||
'2013-10-07 08:23:19', '2013-10-07 08:23:19', '', | ||
'fpeVSZ9ZH7YvUkhXsOVEIssxbfauh5lcoQSYxTcN0XkMneg1L42h+HtvisjlNjBF4ElcD2jApCHoJYq2u9sVWg==', | ||
'2013-10-07 08:23:19', '2013-10-07 08:23:19', false, 'api', '{}', '{"foo":"bar"}', 'challenge data'); |
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