Yubico / yubioath-flutter

Yubico Authenticator for Desktop (Windows, macOS and Linux) and Android
https://developers.yubico.com/yubioath-flutter/
Apache License 2.0
1.02k stars 138 forks source link

Support for contactless SmartCard readers #2

Closed morkl closed 10 years ago

morkl commented 10 years ago

The way the Yubikey Neo is detected limits the application to USB operation, even though it is capable of contactless operation.

Currently, it only matches a hard coded pattern against the smartcard reader name and throws an exception if none is found, but by just changing the pattern, I have it working flawlessly with the contactless reader in my laptop palmrest (Dell latitude E6520 with the Broadcom NFC+fingerprint reader option):

READER_PATTERN = re.compile('.*(Yubikey NEO|Broadcom Corp Contactless SmartCard).*', re.I)

If possible, I would suggest matching against the card itself, and not the reader. If not, the application should allow the user to select from any available smartcard readers before failing.

TomAtYubico commented 10 years ago

Hi, This is a good point. When I'll have some time I'll address this.

Tom.

TomAtYubico commented 10 years ago

Fixed in last commit.