OS differences in fido_dev_has_pin #711
Replies: 2 comments 1 reply
-
If you are using Microsoft's webauthn.dll (which is the only way for unprivileged applications to communicate with security keys on recent versions of Windows, and is abstracted by libfido2 as a pseudo-device with path Please let us know if that's missing from the documentation (it might be completely absent -- our bad), and we will make sure to fix it. |
Beta Was this translation helpful? Give feedback.
-
It should be documented in https://developers.yubico.com/libfido2/Manuals/fido_dev_has_pin.html. We will fix this. Unfortunately, there is no uniform way to handle security keys and Microsoft's webauthn.dll; the latter was designed to do the former in a high-level and opaque way. The way to go is to special-case webauthn.dll in your application using fido_dev_is_winhello(). |
Beta Was this translation helpful? Give feedback.
-
Hi,
I´ve written a small application that uses
fido_dev_make_cred
. Depending onfido_dev_has_pin
I also query aPIN
from the user before calling.Now I´ve compiled the sample on linux and windows, but observe differences in behavior (I use the same 2 yubikeys in both tests):
On linux only the stick with a PIN set is queried for input, on windows
fido_dev_has_pin
always returns true.Did i read the function of
fido_dev_has_pin
wrong?Beta Was this translation helpful? Give feedback.
All reactions