stable
Clone or download
Part of story #31174 see my registered passkeys This commit changes interface of user preferences for passkeys. Instead of having one button to register then check your passkey, you have still a button to register your passkey, but it doesn't disappear after registration (you can register several key), each keys are displayed in a table with its name, creation date and last use. And the check button is still here *Testing:* Go to your user preferences in 'Passkeys' tab. You will see an empty table (or with just one entry if you have already registered a passkey). You are able to register several key (but not twice the same, you can use chrome dev tools to create a fake passkey https://developer.chrome.com/docs/devtools/webauthn/), all registered passkeys appear in the table and you can check them with the button 'Check'. And finally, if you have less than 2 keys a warning alert is displayed. Change-Id: Id47dd9827456f4c721a4af4d0e551f6364d78e66
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/webauthn/include/WebAuthn/Controllers/AccountController.php | +5 | −1 | Go to diff View file |
M | plugins/webauthn/include/WebAuthn/Controllers/AccountPresenter.php | +9 | −1 | Go to diff View file |
A | plugins/webauthn/include/WebAuthn/Controllers/AuthenticatorPresenter.php | +40 | −0 | Go to diff View file |
M | plugins/webauthn/scripts/account/package.json | +1 | −0 | Go to diff View file |
M | plugins/webauthn/scripts/account/pnpm-lock.yaml | +3 | −0 | Go to diff View file |
M | plugins/webauthn/scripts/account/src/account.ts | +18 | −30 | Go to diff View file |
M | plugins/webauthn/site-content/fr_FR/LC_MESSAGES/tuleap-webauthn.po | +20 | −8 | Go to diff View file |
M | plugins/webauthn/site-content/pt_BR/LC_MESSAGES/tuleap-webauthn.po | +18 | −6 | Go to diff View file |
M | plugins/webauthn/templates/account.mustache | +52 | −24 | Go to diff View file |
M | plugins/webauthn/templates/name-modal.mustache | +6 | −0 | Go to diff View file |
M | plugins/webauthn/tests/e2e/cypress/cypress/e2e/user-preferences.cy.ts | +2 | −2 | Go to diff View file |