Yubico / yubikit-android

Yubico Mobile Android SDK - YubiKit
Apache License 2.0
103 stars 38 forks source link

YubiOTP in demo app - "Cancelled by user" when reading over NFC #40

Closed mattdsteele closed 2 years ago

mattdsteele commented 2 years ago

I'm new to NFC Yubikeys, but I'm looking to read an OTP via NFC, with a Yubikey 5, on a device with NFC enabled running Android 8.1.0.

After installing the demo app, I can see on the Device Configuration screen that OTP is enabled on both NFC and USB. When connected via USB, I can also short-tap to generate an OTP, via the standard HID approach.

However, when trying to read an OTP via NFC however, I constantly see a "Cancelled by user" toast on the YubiOTP page. This makes it appear that the result that's coming back is null.

Screenshots and demo of what I'm seeing: https://imgur.com/a/qbQcPx4

Any suggestions on how to debug this?

mattdsteele commented 2 years ago

We were able to resolve this; OTP through NFC was not enabled on the Yubikey.