XcodesApp
XcodesApp copied to clipboard
The operation couldn’t be completed. (LibFido2Swift.FIDO2Error error 0.)
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
Version
- OS: macOS 15.1
- Xcodes: 2.4.0
@kinoroy can I get you to perhaps answer any issues on the hardware key?
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!
I came across this issue as well. Is there any guidance/ticket for how to contribute and resolve this issue?
@travischapman This should be fixed in v2.4.2 :)
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.