Skip to content
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

Generate webauthn authentication options without an email address #7196

Open
JesseFarebro opened this issue Apr 14, 2024 · 0 comments
Open

Comments

@JesseFarebro
Copy link

EdgeDB Version: 5.0-beta2

I may be misunderstanding how WebAuthentication works but I believe you should be able to request authentication options without having to provide the user's ID. This would result in request options that omit allowCredentials which from my understanding isn't required.

Forcing the user to provide an email prevents workflows like WebAuthn conditional UI and from what I can tell should only be used for things like 2FA or re-authenticating a specific user. I found this page helpful in explaining this: https://web.dev/articles/webauthn-discoverable-credentials#allow-credentials

Ideally, we should be able to omit the username when requesting /webauthn/authenticate/options which would, in turn, omit allowCredentials. I think it's still valuable to have an email-conditional flow to perform functions like re-authentication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant