Skip to content

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

Open
AlfioEmanueleFresta wants to merge 1 commit into
masterfrom
fix/prf-eval-by-credential-key
Open

fix(webauthn): accept PRF evalByCredential JSON key#277
AlfioEmanueleFresta wants to merge 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.

…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 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
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