stable

Clone or download

Read-only

feat: Add route DELETE /webauthn/key/{key_id}

Part of story #31175 delete a registered passkey This route will delete a passkey based on id passed in uri. This id must be base64 encoded. The route returns 501 as the method in dao to delete the source is not yet implemented. *Testing:* Call DELETE /webauthn/key/{key_id}: - 401 if you are not connected - 400 if the source id is not base64 - 200 if there is no corresponding source - 200 if you are not the owner - 501 if all is fine Change-Id: Ia4f9709f5f2051d5835f9906d42f4a0c23a6ef8c

Modified Files

Name
M plugins/webauthn/scripts/account/src/account.ts +27 −4 Go to diff View file
A plugins/webauthn/scripts/account/src/delete.ts +25 −0 Go to diff View file
M plugins/webauthn/templates/remove-modal.mustache +5 −1 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +3 −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/DeleteSourceController.php +74 −0 Go to diff View file
A tests/unit/common/WebAuthn/Controllers/DeleteSourceControllerTest.php +118 −0 Go to diff View file