-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consent: Add ability to share data from login to consent request (ory…
…#1353) Closes ory#1003 Signed-off-by: aeneasr <[email protected]>
- Loading branch information
Showing
168 changed files
with
1,089 additions
and
619 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- +migrate Up | ||
ALTER TABLE hydra_oauth2_authentication_request_handled ADD context TEXT NULL; | ||
ALTER TABLE hydra_oauth2_consent_request ADD context TEXT NULL; | ||
|
||
UPDATE hydra_oauth2_authentication_request_handled SET context='{}'; | ||
UPDATE hydra_oauth2_consent_request SET context='{}'; | ||
|
||
ALTER TABLE hydra_oauth2_authentication_request_handled MODIFY context TEXT NOT NULL; | ||
ALTER TABLE hydra_oauth2_consent_request MODIFY context TEXT NOT NULL; | ||
|
||
-- +migrate Down | ||
ALTER TABLE hydra_oauth2_authentication_request_handled DROP COLUMN context; | ||
ALTER TABLE hydra_oauth2_consent_request DROP COLUMN context; |
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,7 @@ | ||
-- +migrate Up | ||
ALTER TABLE hydra_oauth2_authentication_request_handled ADD context TEXT NOT NULL DEFAULT '{}'; | ||
ALTER TABLE hydra_oauth2_consent_request ADD context TEXT NOT NULL DEFAULT '{}'; | ||
|
||
-- +migrate Down | ||
ALTER TABLE hydra_oauth2_authentication_request_handled DROP COLUMN context; | ||
ALTER TABLE hydra_oauth2_consent_request DROP COLUMN context; |
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,36 @@ | ||
-- +migrate Up | ||
INSERT INTO hydra_client (id, allowed_cors_origins, client_name, client_secret, redirect_uris, grant_types, response_types, scope, owner, policy_uri, tos_uri, client_uri, logo_uri, contacts, client_secret_expires_at, sector_identifier_uri, jwks, jwks_uri, token_endpoint_auth_method, request_uris, request_object_signing_alg, userinfo_signed_response_alg, subject_type, audience) | ||
VALUES | ||
('8-client', 'http://localhost|http://google', 'some-client', 'abcdef', 'http://localhost|http://google', 'authorize_code|implicit', 'token|id_token', 'foo|bar', 'aeneas', 'http://policy', 'http://tos', 'http://client', 'http://logo', 'aeneas|foo', 0, 'http://sector', '{"keys": []}', 'http://jwks', 'none', 'http://uri1|http://uri2', 'rs256', 'rs526', 'public', 'https://www.ory.sh/api'); | ||
|
||
INSERT INTO | ||
hydra_oauth2_authentication_session (id, authenticated_at, subject) | ||
VALUES | ||
('8-login-session-id', NOW(), '8-sub'); | ||
|
||
INSERT INTO | ||
hydra_oauth2_authentication_request (challenge, verifier, client_id, subject, request_url, skip, requested_scope, csrf, authenticated_at, requested_at, oidc_context, login_session_id, requested_at_audience) | ||
VALUES | ||
('8-challenge', '8-verifier', '8-client', '8-subject', '8-redirect', false, '8-scope', '8-csrf', NOW(), NOW(), '{}', '8-login-session-id', '8-aud'); | ||
|
||
INSERT INTO | ||
hydra_oauth2_consent_request (challenge, verifier, client_id, subject, request_url, skip, requested_scope, csrf, authenticated_at, requested_at, oidc_context, forced_subject_identifier, login_session_id, login_challenge, requested_at_audience, acr, context) | ||
VALUES | ||
('8-challenge', '8-verifier', '8-client', '8-subject', '8-redirect', false, '8-scope', '8-csrf', NOW(), NOW(), '{}', '8-forced-sub', '8-login-session-id', '8-challenge', '8-aud', '8-acr', '{"foo":"bar"}'); | ||
|
||
INSERT INTO | ||
hydra_oauth2_consent_request_handled (challenge, granted_scope, remember, remember_for, error, requested_at, session_access_token, session_id_token, authenticated_at, was_used, granted_at_audience) | ||
VALUES | ||
('8-challenge', '8-scope', true, 3600, '{}', NOW(), '{}', '{}', NOW(), false, '8-aud'); | ||
|
||
INSERT INTO | ||
hydra_oauth2_authentication_request_handled (challenge, subject, remember, remember_for, error, acr, requested_at, authenticated_at, was_used, forced_subject_identifier, context) | ||
VALUES | ||
('8-challenge', '8-sub', true, 3600, '{}', '1', NOW(), NOW(), false, '8-forced-sub', '{"foo":"bar"}'); | ||
|
||
INSERT INTO | ||
hydra_oauth2_obfuscated_authentication_session (subject, client_id, subject_obfuscated) | ||
VALUES | ||
('8-sub', '8-client', '8-obfuscated'); | ||
|
||
-- +migrate Down |
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.