Skip to content

How to specify "transports" to "usb" when adding a new entry to the list of credentials allowed in assert? #772

Answered by LDVG
ohnowade asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I know that fido_assert_allow_cred(fido_assert_t *assert, const unsigned char *ptr, size_t len); should be used to add a credential, but it seems that ptr should point to the key handle directly, but not the structure that also contains transports. Therefore, I am wondering if there are anyway for me to specify the transports value or any other method that I should use?

Your observation is correct: there is no method in libfido2 for this. The reason being mainly that libfido2 is more closely modeled after the CTAP specification rather than the WebAuthn specification.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ohnowade
Comment options

@James-ZHANG
Comment options

@ohnowade
Comment options

Answer selected by ohnowade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feature request New feature or request
3 participants