stable

Clone or download

Read-only

feat: webauthn modal advise user then auth is done in target modal

Closes story #31177 check my identity when doing a risky action Instead of doing auth in webauthn modal, this modal just advise user that next one will ask identity confirmation. The target modal then send passkey result with the form and the post controller check the result. *Testing:* After have registered your passkey, try to add a ssh key or an access key, it will show you a first modal, then click on 'ok', fill the form and submit. You will need to use your passkey, if authentication succeed the form is submitted and action done. Change-Id: I81535f8676082ff9ec2494c09adfef0810f17f99

Modified Files

Name
M lib/frontend/webauthn/po/fr_FR.po +2 −2 Go to diff View file
M lib/frontend/webauthn/po/pt_BR.po +1 −1 Go to diff View file
M lib/frontend/webauthn/src/AuthenticationModal.test.ts +5 −36 Go to diff View file
M lib/frontend/webauthn/src/AuthenticationModal.ts +5 −46 Go to diff View file
M lib/frontend/webauthn/src/authenticate.ts +39 −22 Go to diff View file
M lib/frontend/webauthn/src/main.ts +35 −26 Go to diff View file
M src/common/Request/RouteCollector.php +60 −2 Go to diff View file
M src/common/User/AccessKey/AccessKeyCreationController.php +15 −2 Go to diff View file
M src/common/User/Account/templates/access-keys.mustache +3 −1 Go to diff View file
M src/common/User/Account/templates/keys-tokens.mustache +2 −0 Go to diff View file
M src/common/User/Account/templates/ssh-keys.mustache +3 −1 Go to diff View file
M src/common/User/SSHKey/SSHKeyCreateController.php +16 −2 Go to diff View file
A src/common/WebAuthn/Authentication/WebAuthnAuthentication.php +113 −0 Go to diff View file
M src/scripts/main/package.json +2 −0 Go to diff View file
M src/scripts/main/pnpm-lock.yaml +11 −1 Go to diff View file
M src/scripts/main/src/account/keys-tokens.ts +73 −7 Go to diff View file
M tests/unit/common/User/SSHKey/SSHKeyCreateControllerTest.php +51 −4 Go to diff View file