XcodesApp icon indicating copy to clipboard operation
XcodesApp copied to clipboard

The operation couldn’t be completed. (LibFido2Swift.FIDO2Error error 0.)

Open molind opened this issue 1 year ago • 5 comments

Describe the bug Trying to login into my dev account using hardware key. It shows field and says insert your pysical key and enter the PIN. I have YubiKey 5C NFC. There is no PIN, but it requires to touch the key to authenticate. When I touch the key it enters some hidden text into that PIN field and next screen is an error The operation couldn’t be completed. (LibFido2Swift.FIDO2Error error 0.)

To Reproduce Steps to reproduce the behavior: Tap install. Sign in with hardware key. Xcodes shows PIN screen. You touch the key. Xcodes shows an error.

There is no way to skip PIN screen.

Expected behavior I should be able to sign in.

Screenshots Screenshot 2024-10-30 at 12 26 08

Version

  • OS: macOS 15.1
  • Xcodes: 2.4.0

molind avatar Oct 30 '24 11:10 molind

@kinoroy can I get you to perhaps answer any issues on the hardware key?

MattKiazyk avatar Nov 01 '24 16:11 MattKiazyk

Yeah at the moment, devices without a FIDO2 PIN set aren't supported, sorry about that.

However, it seems I incorrectly assumed a PIN was required by Apple as the Relying Party but that doesn't seem to be the case now that I am testing it.

So, it should be possible to support PIN-less authentication and I can work on opening a PR to allow it

Thanks for the report!

kinoroy avatar Nov 02 '24 03:11 kinoroy

I came across this issue as well. Is there any guidance/ticket for how to contribute and resolve this issue?

travischapman avatar Jun 11 '25 01:06 travischapman

@travischapman This should be fixed in v2.4.2 :)

kinoroy avatar Jun 11 '25 01:06 kinoroy

Impeccable timing! Linking to #655

Confirmed resolved! YubiKey does include a RETURN after it prints the code, so I just had to input it into a separate field, copy and then paste.

I may PR to make this a bit nicer by removing the default action in that particular case.

travischapman avatar Jun 11 '25 01:06 travischapman