Closed MarkBennett closed 5 years ago
Paging @jcjones -- is this a known issue?
Let me know if you need more specific steps to reproduce. I'm just learning the JS WebAuth APIs right now, but noticed this was a big usability difference between Chrome and Firefox. I'm assuming that there could be some behind the scenes USB device monitoring and binding happening to make this work, so I'm assuming this won't be trivial to change but it would be great for improving the ergonomics of this awesome feature.
Reping @jcjones
Thanks for the ping, I rarely see notifications at Github I'm afraid -- my noise level is very high here.
That the UX is not as nice as Chrome is well-known, and I'm trying to gather a coalition of the willing to improve ours.
The mechanics of how this order-of-operations issue works is a little mysterious to me off-hand. It sounds like perhaps our WebAuthn state machine in authenticator-rs isn't aggressive enough, since once the Yubikey gets the notification that it is being asked to sign, it won't do the TOTP "enter text like a keyboard" thing.
I'm going to open an issue over in that Github repo about this, configure my Yubikey to do this again (all of mine have the slots swapped so I don't accidentally insert junk into documents: ykpersonalize -x
), and see if I can fix a repro by adjusting the speed the state machine runs. This issue should get linked to there when I mention it.
@jcjones I realize that given the context in your last message, you might not see this, but I've got lots of experience with front-end web dev and a tiny bit with Rust (I've read the Rust book from O'Reilly and worked the example code, no prod apps). Anyway, if I can help in anyway please let me know! Thanks! :)
Thanks all -- let's close this issue as a duplicate and hopefully https://github.com/mozilla/authenticator-rs/issues/95 will resolve it.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue at https://webcompat.com/issues/new if you are experiencing a similar problem.
URL: https://webauthn.bin.coffee/
Browser / Version: Firefox 68.0 Operating System: Mac OS X 10.14 Tested Another Browser: Yes
Problem type: Site is not usable Description: Getting credendials from yubikey works if navigator.credentials.create called after YubiKey is inserted, but not after Steps to Reproduce: I'm doing a demo of the new WebAuth APIs. In Chrome I click the "Create Credential" or "Get Assertion" button and then insert my YukiKey and the credentials are read properly.
In Firefox, this only works if I first insert my YubiKey, give it a moment and then click "Create Credential" or "Get Assertion". If I insert the YubiKey after I've clicked "Create Credential" or "Get Assertion" then the YubiKey just outputs a bunch of keys as if it was a USB keyboard.
From a usability perspective, I would expect that calls to
navigator.credentials
API would work regardless of whether the YubiKey was inserted before or after the call to thenavigator.credentials
API was made.I should also note that the interface in Chrome prompting the users to insert their key is much nicer and shows an animation of a user inserting their key into a USB port.
Browser Configuration
Console Messages:
Submitted in the name of
@MarkBennett
From webcompat.com with ❤️