Skip to content

Conversation

@Kehrlann
Copy link
Contributor

Fixes gh-18158 and improves webauthn webdriver tests.

@Kehrlann Kehrlann force-pushed the dgarnier/fix-webauthn-authenticate-allowcredentials branch from 9c81e97 to f79029b Compare November 12, 2025 15:04
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 12, 2025
Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
@Kehrlann Kehrlann force-pushed the dgarnier/fix-webauthn-authenticate-allowcredentials branch from f79029b to 4895b09 Compare November 14, 2025 20:39
Simplifies testing of Webauthn4JRelyingPartyOperations

Issue spring-projectsgh-18158
Previously id.getBytes() was used which was problemantic because
the id is base64 encoded and this did not match the expected ids.

Closes spring-projectsgh-18158
@rwinch rwinch force-pushed the dgarnier/fix-webauthn-authenticate-allowcredentials branch from 4895b09 to b227f53 Compare November 14, 2025 21:08
@rwinch rwinch changed the title Fix webauthn authenticate allowcredentials Fix webauthn multifactor authentication Nov 14, 2025
@rwinch rwinch self-assigned this Nov 14, 2025
@rwinch rwinch added type: bug A general bug in: webauthn WebAuthn and Passkeys and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 14, 2025
@rwinch rwinch added this to the 7.0.0 milestone Nov 14, 2025
@rwinch rwinch enabled auto-merge (rebase) November 14, 2025 21:13
@rwinch
Copy link
Member

rwinch commented Nov 14, 2025

Thanks again for your help identifying the issue, providing tests, and a fix for it.

I pushed a few minor changes:

  • The fix now passes the raw id vs the id (which is base64 encoded) into webauthn4j APIs rather than base64 encoding the allowed credentialIds
  • I added a unit test to ensure that this is fixed in unit tests and not just the WebDriver tests

@rwinch rwinch merged commit 26991bb into spring-projects:main Nov 14, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: webauthn WebAuthn and Passkeys type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebAuthn login fails when validating allowCredentials

3 participants