Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: add CLI flag to force FIDO2 #735

Closed
wants to merge 1 commit into from

Conversation

TheOneric
Copy link

Matching the exisitng -u flag to force U2F.
This can be convenient for checking that a device works correctly under FIDO2 and does not rely on fallback to U2F.

Specifically I’m currently investigating a device which should support FIDO2, failing under the CTAP2/FIDO2 mode of another implementation and wanted to cross-check that the device actually works with CTAP2 in libfido2 (it does). I thought this may also be helpful to other so here’s the patch I used including documentation updates.

Matching the exisitng -u flag to force U2F.
This can be useful for checking that a device works correctly
under FIDO2 and does not rely on fallback to U2F.
@LDVG
Copy link
Contributor

LDVG commented Oct 18, 2023

Hi,

While we can see how it could be useful for debugging your own implementation, we are not necessarily sure that the tools provided by libfido2 should learn this option. After all, they default to FIDO2 and drop to U2F only if the authenticator does not implement the former.

Debug output can be used to clearly see when U2F fallback happens. The output from fido2-cred -M should also be indicative (attestation format "fido-u2f", for example). Should you absolutely need to force FIDO2 behavior, that is best done in the implementation you're testing or by modifying one of our examples to do so.

Thank you for sharing the patch!

@LDVG LDVG closed this Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants