stable

Clone or download

Read-only

feat: WebAuthn lib use a modal to advertise user on authentication

Part of story #31177 check my identity when doing a risky action To improve user experience, when doing a risky action, the click on the button open a first modal to advertise user about identity check. If it succeeded this modal is closed and the 'real' modal is opened. *Testing:* The lib is already used for ssh keys and access keys. If you have no registered passkeys, you will see no differences. But if you have at least one registered passkey the authentication modal should appear. Co-authored-by: Joris Masson <joris.masson@enalean.com> Change-Id: I4c45ab3a6ca5e5900eb5ca08ef64e24c271f718b

Modified Files

Name
M build-manifest.json +4 −0 Go to diff View file
M lib/frontend/tlp-modal/src/modal-opener.ts +1 −1 Go to diff View file
M lib/frontend/webauthn/package.json +5 −1 Go to diff View file
M lib/frontend/webauthn/pnpm-lock.yaml +12 −0 Go to diff View file
A lib/frontend/webauthn/po/fr_FR.po +30 −0 Go to diff View file
A lib/frontend/webauthn/po/pt_BR.po +28 −0 Go to diff View file
A lib/frontend/webauthn/src/AuthenticationModal.test.ts +72 −0 Go to diff View file
A lib/frontend/webauthn/src/AuthenticationModal.ts +184 −0 Go to diff View file
R lib/frontend/webauthn/src/main.test.ts Go to diff View file
A lib/frontend/webauthn/src/authenticate.ts +71 −0 Go to diff View file
M lib/frontend/webauthn/src/main.ts +46 −37 Go to diff View file
A lib/frontend/webauthn/src/pofile-shim.d.ts +24 −0 Go to diff View file
M lib/frontend/webauthn/vite.config.ts +2 −1 Go to diff View file
M src/common/User/Account/templates/ssh-keys.mustache +1 −6 Go to diff View file
M src/scripts/main/src/account/keys-tokens.ts +8 −33 Go to diff View file