stable

Clone or download

Read-only

feat: add ts asset to register a new passkey

Part of story #31173 register a new passkey This commit add a typescript asset to user preferences for registering a new passkey. *Testing:* Go to your preferences, click on button 'Add a passkey', fill the name of your passkey, use your passkey. The page should reload and display a message that you have a registered passkey. If you look in database for table 'webauthn_credential_source', you will see a tuple with your passkey (the name field should contains the same name you have previously typed) Change-Id: Iba49a18451b7a4ad68bd480b7f39580fd72f42fb

Modified Files

Name
M plugins/webauthn/include/WebAuthn/Controllers/AccountController.php +13 −1 Go to diff View file
M plugins/webauthn/include/WebAuthn/Controllers/AccountPresenter.php +1 −0 Go to diff View file
M plugins/webauthn/include/webauthnPlugin.php +16 −1 Go to diff View file
A plugins/webauthn/package.json +26 −0 Go to diff View file
A plugins/webauthn/pnpm-lock.yaml +43 −0 Go to diff View file
A plugins/webauthn/scripts/RegistrationFault.ts +26 −0 Go to diff View file
A plugins/webauthn/scripts/account.ts +92 −0 Go to diff View file
A plugins/webauthn/scripts/register.ts +57 −0 Go to diff View file
M plugins/webauthn/site-content/fr_FR/LC_MESSAGES/tuleap-webauthn.po +21 −0 Go to diff View file
M plugins/webauthn/site-content/pt_BR/LC_MESSAGES/tuleap-webauthn.po +21 −0 Go to diff View file
M plugins/webauthn/templates/account.mustache +29 −4 Go to diff View file
A plugins/webauthn/templates/name-modal.mustache +27 −0 Go to diff View file
A plugins/webauthn/tests/e2e/cypress/cypress.config.ts +6 −0 Go to diff View file
A plugins/webauthn/tests/e2e/cypress/cypress/e2e/user-preferences.cy.ts +39 −0 Go to diff View file
A plugins/webauthn/tests/e2e/cypress/cypress/support/commands.ts +63 −0 Go to diff View file
A plugins/webauthn/tests/e2e/cypress/cypress/support/e2e.ts +22 −0 Go to diff View file
A plugins/webauthn/tests/e2e/cypress/tsconfig.json +4 −0 Go to diff View file
A plugins/webauthn/themes/style.scss +22 −0 Go to diff View file
A plugins/webauthn/tsconfig.json +4 −0 Go to diff View file
A plugins/webauthn/vite.config.ts +37 −0 Go to diff View file
M src/common/WebAuthn/Controllers/PostRegistrationController.php +1 −1 Go to diff View file
M tests/e2e/full/tuleap/setup.sh +2 −1 Go to diff View file
M tests/unit/common/WebAuthn/Controllers/PostRegistrationControllerTest.php +6 −0 Go to diff View file