stable
Clone or download
Read-only
Part of story #31173 register a new passkey This commit introduces route POST /webauthn/authentication-challenge. This route generate options for authentication ceremony. These options are then sent to the passkey. See WebAuthn documentation for more precision. *Testing:* Fetch POST /webauthn/authentication-challenge: - If you are not connected, you will get an error 401 - If you don't have registered passkey, you will get an error 403 with the message "You have to register your passkey before authenticate with it" - Else you will receive a json with this format : { "allowCredentials": { "id": string, "type": string }[], "challenge": string } Change-Id: I3d4c3a6960e50ca501a5dfb7c41ae3fb57ba6bea
Modified Files
Name | ||||
---|---|---|---|---|
M | site-content/fr_FR/LC_MESSAGES/tuleap-core.po | +5 | −0 | Go to diff View file |
M | site-content/pt_BR/LC_MESSAGES/tuleap-core.po | +3 | −0 | Go to diff View file |
M | src/common/Request/RouteCollector.php | +17 | −0 | Go to diff View file |
A | src/common/WebAuthn/Controllers/PostAuthenticationChallengeController.php | +79 | −0 | Go to diff View file |
A | src/common/WebAuthn/Source/GetAllCredentialSourceByUserId.php | +31 | −0 | Go to diff View file |
M | src/common/WebAuthn/Source/WebAuthnCredentialSourceDao.php | +1 | −1 | Go to diff View file |
M | tests/lib/Stubs/WebAuthn/WebAuthnCredentialSourceDaoStub.php | +17 | −2 | Go to diff View file |
A | tests/unit/common/WebAuthn/Controllers/PostAuthenticationChallengeControllerTest.php | +115 | −0 | Go to diff View file |