duo-labs / webauthn.io

The source code for webauthn.io, a demonstration of WebAuthn.
https://webauthn.io
BSD 3-Clause "New" or "Revised" License
645 stars 120 forks source link

Registering in Chrome Fails on MacOS Only #61

Closed mesink closed 1 year ago

mesink commented 1 year ago

When attempting to register on a mac with a new key, I get the prompt to set a pin. After entering the pin in both fields, the prompt disappears and nothing else happens. The registration appears to be aborted, and the pin is not set in the device. Console output shows:

DOMexception: The operation either timed out or was not allowed. webauthn.js:120

On a Windows device, after entering the pin, another prompt shows asking me to touch the authenticator, and the registration completes successfully.

MasterKale commented 1 year ago

@DanBujak Can you try this again with the latest version of the site (#58) that's now live?

mesink commented 1 year ago

I saw the new version, and unfortunately still see the same issue. It's not happening with all keys so I suspect it's something in the way certain devices are handling messages. Is there any debug functionality built into the server where I could see what messages are being sent/received to try to dig a bit deeper?

MasterKale commented 1 year ago

Alright, time for specifics then:

mesink commented 1 year ago

All keys work fine on Windows 10 using Chrome. 3 of them (including the one I'm developing and have access to source for) aren't working on macOS. Tested on multiple versions of mac hardware OS and chrome.

MasterKale commented 1 year ago

Hello @mesink, can you try this scenario again, but open up a tab in chrome to chrome://device-log/, uncheck everything but "FIDO", and clear the box first. I'm wondering if you get anything that looks odd from the interaction between Chrome and security key.

mesink commented 1 year ago

Hey, I did already resolve the issue by looking into the logs in chrome as you suggest. The RC was an incorrect value reported for the key agreement. Thanks for the help!