bitwarden / mobile

Retired Bitwarden mobile app for iOS and Android (MAUI/Xamarin).
https://bitwarden.com
GNU General Public License v3.0
123 stars 19 forks source link

Bitwarden iOS app won’t authenticate with YubiKey NFC 5 #1192

Closed Bmo8aNXrAP2nQ6WgvWccqlu71oNvY4KyXkE0DP3 closed 3 years ago

Bmo8aNXrAP2nQ6WgvWccqlu71oNvY4KyXkE0DP3 commented 3 years ago

When trying to log into the Bitwarden iOS app it prompts for the YubiKey 5 NFC but will not recognize the key.

image

Actions Taken

Greenderella commented 3 years ago

Hi @kland23

As per my current testing YubiKey 5 NFC is working as expected on iOS 14.3 with an iPhone SE 2020 and Bitwarden 2.7.2 (https://drive.google.com/file/d/1G6km8zcYdAHG09PhmlG_g1I_XKQHftyu/view?usp=sharing), you just need to hold it in the correct spot at the back of the device, near the camera.

Please make sure that your device supports NFC, and that you have your key is correctly configured as Yubico OTP and not FIDO U2F.

Remember that if you are self-hosting then you will need to configure the YubiKey API credentials in your environment variables. Please refer to this article for more detailed instruction: https://bitwarden.com/help/article/environment-variables/.

Try downloading the YubiKey Manager (https://www.yubico.com/products/services-software/download/yubikey-manager/) and make sure every box is checked like this:

image

Also, the YubiKey personalization tool (https://www.yubico.com/products/services-software/download/yubikey-personalization-tools), will let you configure with slot to use over NFC. Most likely, the slot that contains the credential needed for your Bitwarden account is in slot 1, so please try following through the steps on https://support.yubico.com/hc/en-us/articles/360016614700 to configure it.

If it's blank like in this page, just press the Program button:

image

PT41LeeliBO0S7Jz1FLI1sUxjE7SzJUQLUIdtdM commented 3 years ago

I had a similar issue with YubiKey 5C NFC. NFC OTP was disabled by default in YubiKey Manager (Interfaces tab). This tip from @Greenderella solved the problem for me:

Try downloading the YubiKey Manager (yubico.com/products/services-software/download/yubikey-manager) and make sure every box is checked like this:

clayadams5226 commented 3 years ago

Thank you for getting in touch and bringing this to our attention! We'd like to assist you further. We ask that you please contact us using our contact page, here: https://bitwarden.com/contact. You can include a link to this issue in the message content. The issue here will be closed and moved over to our Help Desk.