Yubico / yubikey-personalization

YubiKey Personalization cross-platform library and tool
https://developers.yubico.com/yubikey-personalization/
BSD 2-Clause "Simplified" License
297 stars 83 forks source link

Any way to detect that a touch is required? #154

Open dhess opened 4 years ago

dhess commented 4 years ago

Related to #150, I'd like to build a macOS app that notifies the user when their YubiKey is waiting for a touch. This would be handy when using a YubiKey that doesn't have a blinking LED, or with an iMac (all of the USB ports are on the back of the display).

Is there a way to detect this situation from a standalone application, i.e., from a different application than the one that makes the authentication request? I'm imagining something like polling the current device status, either through this library or libusb.

semente commented 2 years ago

@dhess I found that the command ykinfo -s return the error message "Yubikey core error: timeout" when waiting for a touch.