-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webauthn authentication on Windows always prompts for windows security key #399
Comments
I think I might have found the problem, webauthn-ruby by default doesnt do anything with transports, I would need to save those to my database and then add them to the allowed_credentials in order for it to properly prompt for the right credentials. If I was expected to know this, feel free to close this issue. |
Hi @j-boers-13 , Thank you for the kind words and for brining up your problem here! I started examining our gem's code on I also did a bit of digging in the standard which states at 7.1 - step 23:
Though it's not a validation or a mandatory step, I think we never paid much attention to the
What do you think @santiagorodriguez96 @j-boers-13 ? |
I've opened a PR for adding an interface to access the transports: #421 |
Sounds good, that would potentially solve the issue. I also think it's an issue in windows specifically which they have changed recently. I tried it without changing anything in our code recently and i was able to use different authentication methods other than windows hello. But adding the possibility for passing transports is definitely useful I think! |
Hi,
Let me start off by saying thank you for all the work on the ruby package and the wonderful examples you have provided.
I have been working on a Rails 7 app using webauthn-ruby gem for 2FA. In the frontend we use WebAuthnJSON. When logging in, first there is a step with email/password, after which we find the existing credentials and a user will need to authenticate with webauthn.
The problem I have been running into is, no matter what settings I use, in Windows (chrome), users always get prompted for a security key (usb) or with other settings they get prompted for windows hello sign in. After you cancel that step, you get to the normal chrome modal where you can select a a device to authenticate with. We want to skip the windows step, but can't figure out how to.
This issue is also present on https://webauthn.cedarcode.com/
However if you test on https://webauthn.io, this issue is not present.
Is this because of the gem or is it related to WebAuthnJSON?
This happens using the default settings and pretty much any other settings. We can get rid of the windows hello login by using:
Specifically setting the resident_key to required removes the step from the registering, but it doesn't remove the windows hello or security key step in authentication, so my problem persists. Could you point me into the right direction?
Thank you in advance!
The text was updated successfully, but these errors were encountered: