-
Notifications
You must be signed in to change notification settings - Fork 27
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
AlternateLoginOptions don't work #222
Comments
Hi, the plan is to always offer OTP input. Then, depending on whether challenges had been triggered, webauthn or push is offered in the alternate login options (+preferred_client_mode setting in the server chosing the mode first used by the plugin). So if you fail webauthn there should only be the option to try otp but not push if the user does not have a push token. Is there no error displayed after failing webauthn? what was the reason for failing and which OS? |
Hey, thanks for the response!
If i fail webauthn (in this case by failing to enter the correct yubikey pin or unplugging the device), i don't get any error message, but remain at the page asking to 'Please confirm with your WebAuthn token' and presenting two 'Alternate login options:' 'WebAuthn' and 'OTP'. Upon selecting OTP, an OTP input field appears, but whatever I enter, it will just return with the same screen. After a bit more debugging, I found out Privacyidea is returning 'message': 'Response did not match the challenge.', so it seems like it's trying to send an OTP as response to the WebAuthn challenge instead of initiating a new validate call. The OS is debian bookworm. |
Thanks for the information. I guess what you wrote is the cause of the problem. If you can, feel free to submit a PR to fix it, as we currently do not have the resources to work on this project. |
Sorry to hear that, i'll see what i can do to conjure up a PR. Are there any future plans to pick this project back up again or would I be better off migrating to keycloak? |
We will probably update this some time, but we have multiple plugins so it always takes some time before we do something. |
After failing a webauthn challenge, users are presented with alternate login options. I haven't been able to successfully use them, though, nothing I tried resulted in successful authentication.
Is there an easy way to disable this feature entirely and simply return the user to the original login screen with an authentication failed message?
The text was updated successfully, but these errors were encountered: