Skip to content

Implement discoverable credential 'preferred'#125

Merged
iinuwa merged 2 commits into
linux-credentials:masterfrom
msirringhaus:optional_discoverable_creds
Jul 17, 2025
Merged

Implement discoverable credential 'preferred'#125
iinuwa merged 2 commits into
linux-credentials:masterfrom
msirringhaus:optional_discoverable_creds

Conversation

@msirringhaus

Copy link
Copy Markdown
Collaborator

Switched away from a context-less From<MakeCredentialRequest> for Ctap2MakeCredentialRequest implementation to a dedicated function that can additionally receive the device-info to make that transformation.
Now we also don't need to copy the original request and modify it (which was always a bit icky), but we can do the direct translation to the Ctap2-request.

@msirringhaus msirringhaus force-pushed the optional_discoverable_creds branch from 75f60be to 5990e71 Compare July 17, 2025 09:26

@iinuwa iinuwa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The whole renaming "resident keys" to be "discoverable credentials" in the spec is a debacle, but I prefer using resident key terminology in the library as it's easier to map to the spec, IMO. (E.g. resident_key_requirement and ResidentKeyRequirement rather than discoverable_credential and DiscoverableCredentialRequirement)

Not a dealbreaker for me though.

Other than that, looks good.

@msirringhaus

Copy link
Copy Markdown
Collaborator Author

Ugh, the webauthn spec indeed still calls it resident keys. I'll change it.

@msirringhaus msirringhaus requested a review from iinuwa July 17, 2025 14:04
@iinuwa iinuwa merged commit e73c76b into linux-credentials:master Jul 17, 2025
3 checks passed
@iinuwa

iinuwa commented Jul 17, 2025

Copy link
Copy Markdown
Member

Thanks!

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.

2 participants