forked from ory/kratos
-
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.
feat(webauthn): implement refresh using webauth
This change introduces the ability to refresh a session (for example when entering "sudo" mode") using WebAuthn credentials. In this case, it does not matter whether the WebAuthN credentials are for MFA or passwordless flows. Closes ory#2284
- Loading branch information
Showing
24 changed files
with
1,151 additions
and
47 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
75 changes: 75 additions & 0 deletions
75
...resh-case=passwordless-case=mfa_v0_credentials-passwordless_enabled=false#01-browser.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,75 @@ | ||
[ | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "csrf_token", | ||
"node_type": "input", | ||
"required": true, | ||
"type": "hidden" | ||
}, | ||
"group": "default", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "identifier", | ||
"node_type": "input", | ||
"type": "hidden", | ||
"value": "[email protected]" | ||
}, | ||
"group": "default", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "webauthn_login_trigger", | ||
"node_type": "input", | ||
"type": "button", | ||
"value": "" | ||
}, | ||
"group": "webauthn", | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1010008, | ||
"text": "Use security key", | ||
"type": "info" | ||
} | ||
}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "webauthn_login", | ||
"node_type": "input", | ||
"type": "hidden", | ||
"value": "" | ||
}, | ||
"group": "webauthn", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"async": true, | ||
"crossorigin": "anonymous", | ||
"id": "webauthn_script", | ||
"integrity": "sha512-E3ctShTQEYTkfWrjztRCbP77lN7L0jJC2IOd6j8vqUKslvqhX/Ho3QxlQJIeTI78krzAWUQlDXd9JQ0PZlKhzQ==", | ||
"node_type": "script", | ||
"referrerpolicy": "no-referrer", | ||
"type": "text/javascript" | ||
}, | ||
"group": "webauthn", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "script" | ||
} | ||
] |
75 changes: 75 additions & 0 deletions
75
...=refresh-case=passwordless-case=mfa_v0_credentials-passwordless_enabled=false#01-spa.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,75 @@ | ||
[ | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "csrf_token", | ||
"node_type": "input", | ||
"required": true, | ||
"type": "hidden" | ||
}, | ||
"group": "default", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "identifier", | ||
"node_type": "input", | ||
"type": "hidden", | ||
"value": "[email protected]" | ||
}, | ||
"group": "default", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "webauthn_login_trigger", | ||
"node_type": "input", | ||
"type": "button", | ||
"value": "" | ||
}, | ||
"group": "webauthn", | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1010008, | ||
"text": "Use security key", | ||
"type": "info" | ||
} | ||
}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "webauthn_login", | ||
"node_type": "input", | ||
"type": "hidden", | ||
"value": "" | ||
}, | ||
"group": "webauthn", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"async": true, | ||
"crossorigin": "anonymous", | ||
"id": "webauthn_script", | ||
"integrity": "sha512-E3ctShTQEYTkfWrjztRCbP77lN7L0jJC2IOd6j8vqUKslvqhX/Ho3QxlQJIeTI78krzAWUQlDXd9JQ0PZlKhzQ==", | ||
"node_type": "script", | ||
"referrerpolicy": "no-referrer", | ||
"type": "text/javascript" | ||
}, | ||
"group": "webauthn", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "script" | ||
} | ||
] |
75 changes: 75 additions & 0 deletions
75
...resh-case=passwordless-case=mfa_v0_credentials-passwordless_enabled=false#02-browser.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,75 @@ | ||
[ | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "csrf_token", | ||
"node_type": "input", | ||
"required": true, | ||
"type": "hidden" | ||
}, | ||
"group": "default", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "identifier", | ||
"node_type": "input", | ||
"type": "hidden", | ||
"value": "[email protected]" | ||
}, | ||
"group": "default", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "webauthn_login_trigger", | ||
"node_type": "input", | ||
"type": "button", | ||
"value": "" | ||
}, | ||
"group": "webauthn", | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1010008, | ||
"text": "Use security key", | ||
"type": "info" | ||
} | ||
}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"disabled": false, | ||
"name": "webauthn_login", | ||
"node_type": "input", | ||
"type": "hidden", | ||
"value": "" | ||
}, | ||
"group": "webauthn", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "input" | ||
}, | ||
{ | ||
"attributes": { | ||
"async": true, | ||
"crossorigin": "anonymous", | ||
"id": "webauthn_script", | ||
"integrity": "sha512-E3ctShTQEYTkfWrjztRCbP77lN7L0jJC2IOd6j8vqUKslvqhX/Ho3QxlQJIeTI78krzAWUQlDXd9JQ0PZlKhzQ==", | ||
"node_type": "script", | ||
"referrerpolicy": "no-referrer", | ||
"type": "text/javascript" | ||
}, | ||
"group": "webauthn", | ||
"messages": [], | ||
"meta": {}, | ||
"type": "script" | ||
} | ||
] |
Oops, something went wrong.