-
-
Notifications
You must be signed in to change notification settings - Fork 962
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: include duplicate credentials in account linking message (#4079)
- Loading branch information
1 parent
6ab2637
commit 122b63d
Showing
17 changed files
with
1,244 additions
and
53 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
188 changes: 188 additions & 0 deletions
188
...login_flow_if_email_is_already_being_used_by_oidc_credentials-case=should_fail_login.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,188 @@ | ||
{ | ||
"organization_id": null, | ||
"type": "browser", | ||
"active": "oidc", | ||
"ui": { | ||
"method": "POST", | ||
"nodes": [ | ||
{ | ||
"type": "input", | ||
"group": "oidc", | ||
"attributes": { | ||
"name": "provider", | ||
"type": "submit", | ||
"value": "claimsViaUserInfo", | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1010018, | ||
"text": "Confirm with claimsViaUserInfo", | ||
"type": "info", | ||
"context": { | ||
"provider": "claimsViaUserInfo" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "input", | ||
"group": "oidc", | ||
"attributes": { | ||
"name": "provider", | ||
"type": "submit", | ||
"value": "invalid-issuer", | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1010018, | ||
"text": "Confirm with invalid-issuer", | ||
"type": "info", | ||
"context": { | ||
"provider": "invalid-issuer" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "input", | ||
"group": "oidc", | ||
"attributes": { | ||
"name": "provider", | ||
"type": "submit", | ||
"value": "secondProvider", | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1010018, | ||
"text": "Confirm with secondProvider", | ||
"type": "info", | ||
"context": { | ||
"provider": "secondProvider" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "input", | ||
"group": "oidc", | ||
"attributes": { | ||
"name": "provider", | ||
"type": "submit", | ||
"value": "valid2", | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1010018, | ||
"text": "Confirm with valid2", | ||
"type": "info", | ||
"context": { | ||
"provider": "valid2" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "input", | ||
"group": "default", | ||
"attributes": { | ||
"name": "csrf_token", | ||
"type": "hidden", | ||
"required": true, | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": {} | ||
}, | ||
{ | ||
"type": "input", | ||
"group": "default", | ||
"attributes": { | ||
"name": "identifier", | ||
"type": "hidden", | ||
"value": "[email protected]", | ||
"required": true, | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1070004, | ||
"text": "ID", | ||
"type": "info" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "input", | ||
"group": "password", | ||
"attributes": { | ||
"name": "password", | ||
"type": "password", | ||
"required": true, | ||
"autocomplete": "current-password", | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1070001, | ||
"text": "Password", | ||
"type": "info" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "input", | ||
"group": "password", | ||
"attributes": { | ||
"name": "method", | ||
"type": "submit", | ||
"value": "password", | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1010022, | ||
"text": "Sign in with password", | ||
"type": "info" | ||
} | ||
} | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"id": 1010016, | ||
"text": "You tried to sign in with \"[email protected]\", but that email is already used by another account. Sign in to your account with one of the options below to add your account \"[email protected]\" at \"generic\" as another way to sign in.", | ||
"type": "info", | ||
"context": { | ||
"available_credential_types": [], | ||
"available_providers": [], | ||
"duplicateIdentifier": "[email protected]", | ||
"duplicate_identifier": "[email protected]", | ||
"provider": "generic" | ||
} | ||
} | ||
] | ||
}, | ||
"refresh": false, | ||
"requested_aal": "aal1", | ||
"state": "choose_method" | ||
} | ||
|
Oops, something went wrong.