Skip to content

fix(webauthn): accept PRF evalByCredential JSON key#277

Merged
AlfioEmanueleFresta merged 1 commit into
masterfrom
fix/prf-eval-by-credential-key
Jun 19, 2026
Merged

fix(webauthn): accept PRF evalByCredential JSON key#277
AlfioEmanueleFresta merged 1 commit into
masterfrom
fix/prf-eval-by-credential-key

Conversation

@AlfioEmanueleFresta

Copy link
Copy Markdown
Member

JSON callers scope PRF salts per credential under the member name evalByCredential, but the deserializer only accepted a snake_case key, so the per-credential map was dropped before it could be used. This accepts the spec member name so those salts reach the assertion request.

Closes #251.

@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 15, 2026 21:19
@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as draft June 15, 2026 21:33
@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 15, 2026 21:44
…er-credential salts

The per-credential member deserialized as eval_by_credential instead of the spec name evalByCredential, so conformant JSON callers lost their per-credential salts and the spec validations never ran. Rename it via camelCase, and validate every key in prf_to_hmac_input so a later empty or non-base64url key is still rejected.
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the fix/prf-eval-by-credential-key branch from 0fb6e66 to b5aa969 Compare June 19, 2026 21:32
@AlfioEmanueleFresta AlfioEmanueleFresta merged commit 9187409 into master Jun 19, 2026
2 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the fix/prf-eval-by-credential-key branch June 19, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(webauthn): accept PRF evalByCredential key in get-options JSON

1 participant