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

Show only passkey based autofill #2037

Closed
praveshShetty opened this issue Mar 4, 2024 · 7 comments
Closed

Show only passkey based autofill #2037

praveshShetty opened this issue Mar 4, 2024 · 7 comments

Comments

@praveshShetty
Copy link

Description

I was trying to integrate conditional UI, in my application and I wanted to show only saved passey in autofill and nothing else. But if I use autocomplete="username webauthn" in the input tag, I get both saved password and passkey. I also tried using only autocomplete="webauthn" but that does not trigger autofill at all. Can we have only passkey options in autofill ?

@timcappalli
Copy link
Member

This is a browser implementation question, not a WebAuthn specification issue. You can find details on how to file issues with browsers on the New Issue page.

I'll add that this request is not practical as many users will not yet have a passkey and will need to enter a username/password.

@praveshShetty
Copy link
Author

praveshShetty commented Mar 4, 2024

but in my use case the input field is a phone number and there is no option to add a password. It is OTP based flow. So it does not make sense to show these options.

@timcappalli
Copy link
Member

Phone numbers are just a different identifier for a username and are often autofilled by browsers and/or password managers.

@praveshShetty
Copy link
Author

CMIIMW but we have a different autofill token called "tel" for tel control field right ? that should be working with webauthn for such cases I feel.

@nov
Copy link

nov commented Mar 5, 2024

probably Google Password Manager's bug
https://issues.chromium.org/issues/41486868#c_ts1706142011

@timcappalli
Copy link
Member

There is nothing actionable for the WebAuthn specification, so propose we close this @nadalin.

@pascoej
Copy link
Contributor

pascoej commented May 1, 2024

Hi. I think this is good feedback and I've run into the same thought while implementing our autocomplete processing. The behavior here is defined in the HTML spec here: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-processing-model

Requesting a change there would be the best way forward to resolve this issue. The issues page for that spec is at https://github.com/whatwg/html/issues

Thank you!

@pascoej pascoej closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants