Skip to content

Conversation

@msirringhaus
Copy link
Collaborator

Registering and signing in with a U2F device should now work, too.
There is one problem in libwebauthn, that still needs a fix, though: "Discoverable Credential: Preferred" is not possible at the moment. We map this to "Required" and thus make the request not downgradeable to U2F, which makes the request fail.
It might also be worth thinking about changing Ctap2AttestationStatement::FidoU2F() inside libwebauthn to only contain one non-optional certificate, removing the need for error checking here in the portal.

Copy link
Member

@iinuwa iinuwa left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@iinuwa
Copy link
Member

iinuwa commented Jul 16, 2025

It might also be worth thinking about changing Ctap2AttestationStatement::FidoU2F() inside libwebauthn to only contain one non-optional certificate, removing the need for error checking here in the portal.

Yes, that would be good, since the format would be invalid without it anyway.

@msirringhaus
Copy link
Collaborator Author

Then let me add that to libwebauthn first and rebase this PR, once it lands

@iinuwa iinuwa merged commit 3cae1f4 into linux-credentials:main Jul 16, 2025
1 check passed
@iinuwa
Copy link
Member

iinuwa commented Jul 16, 2025

Oh, sorry, already merged.

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