stable
Clone or download
Read-only
Part of story #31173 register a new passkey This commit introduce WebAuthnChallengeDao. It will allow to store challenge generated for registration ceremony. The challenge need to be stored as the second step of ceremony didn't know the challenge used for the first step. *Testing:* Fetch POST /webauthn/registration when connected. You will see a new tuple in table webauthn_challenge with the id of your user. The string stored in column challenge will be the same as the one in challenge field of json returned by route Change-Id: Ie33ee6db1b244e56fa8f37153d3e262da4436a24
Modified Files
Name | ||||
---|---|---|---|---|
M | src/common/Request/RouteCollector.php | +2 | −0 | Go to diff View file |
A | src/common/WebAuthn/Challenge/SaveWebAuthnChallenge.php | +28 | −0 | Go to diff View file |
A | src/common/WebAuthn/Challenge/WebAuthnChallengeDao.php | +58 | −0 | Go to diff View file |
M | src/common/WebAuthn/Controllers/PostRegistrationController.php | +7 | −0 | Go to diff View file |
M | src/db/mysql/database_structure.sql | +7 | −0 | Go to diff View file |
A | src/db/mysql/updates/2023/202304031615_create_webauthn_challenge_table.php | +42 | −0 | Go to diff View file |
A | tests/integration/tests/WebAuthn/Challenge/WebAuthnChallengeDaoTest.php | +90 | −0 | Go to diff View file |
A | tests/lib/Stubs/WebAuthn/WebAuthnChallengeDaoStub.php | +37 | −0 | Go to diff View file |
M | tests/unit/common/WebAuthn/Controllers/PostRegistrationControllerTest.php | +27 | −0 | Go to diff View file |