Skip to content

Conversation

@AlfioEmanueleFresta
Copy link
Member

@AlfioEmanueleFresta AlfioEmanueleFresta commented Jan 24, 2026

See comment: #138 (comment)

Copy link
Collaborator

@msirringhaus msirringhaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be fine with this as is. I just have the question, if we should cut off HMAC as drastically.

Some(ext) => match &ext.prf {
Some(prf_json) => Some(PrfInput::try_from(prf_json.clone())?),
None => None,
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should only do this change here and keep HMAC available for the Rust-API, which isn't a strict webauthn-compliant interface as opposed to the JSON-interface?

I've seen some questions of potential users of this extension floating around, but I'm not sure if they have changed by now to PRF.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with the changes too, so I'm going to go ahead and merge.

I see that the Ctap2GetAssertion model still has HmacOrPrf; was there another part of the Rust-API that you think we should preserve?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking about leaving the option in GetAssertionRequestExtensions, as that is what a user would interact with, if they do not use JSON. So the Rust API might be a bit more 'powerful' in that sense, and the JSON-API more strict regarding webauthn-spec.

Base automatically changed from json to master January 26, 2026 21:46
@iinuwa iinuwa changed the base branch from master to push-wmokmzunyvws January 26, 2026 21:56
@iinuwa iinuwa changed the base branch from push-wmokmzunyvws to master January 26, 2026 21:56
@iinuwa iinuwa merged commit 0f7c495 into master Jan 26, 2026
4 checks passed
@iinuwa iinuwa deleted the json-prf-only branch January 26, 2026 22:22
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.

4 participants