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

fix/446-enforce-conditional-ui-autocomplete-token-order #451

Merged

Conversation

MasterKale
Copy link
Owner

@MasterKale MasterKale commented Oct 3, 2023

This PR tweaks startAuthentication() in browser to check that the "webauthn" value in an <input>'s autocomplete attribute is either the sole value or the last value. This aligns things with the WHATWG, which helps conditional UI appear more reliably in browsers that enforce autocomplete token order (i.e. Chrome.)

Screenshot 2023-10-02 at 11 10 04 PM

Fixes #446.

@MasterKale MasterKale added this to the v8.3.1 milestone Oct 3, 2023
@MasterKale MasterKale added the package:browser @simplewebauthn/browser label Oct 3, 2023
@MasterKale MasterKale changed the title Fix/446 enforce conditional UI autocomplete token order fix/446-enforce-conditional-ui-autocomplete-token-order Oct 3, 2023
@MasterKale MasterKale merged commit 7f3ea5e into master Oct 3, 2023
@MasterKale MasterKale deleted the fix/446-enforce-conditional-ui-autocomplete-token-order branch October 3, 2023 06:13
@zhangbobell
Copy link

Thank you for providing such a simple library for Webauthn, I encounter a problem when using Web Components, since it using a shadow DOM, so the detection method querySelectorAll could not visited the input inside the Shadow DOM, so could you help me to figure out how to solve the problem?

@MasterKale
Copy link
Owner Author

@zhangbobell Please start a new Discussion about this, PR's are awful places for questions like yours to get a response.

https://github.com/MasterKale/SimpleWebAuthn/discussions/new/choose

@zhangbobell
Copy link

@MasterKale OK, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:browser @simplewebauthn/browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Order of 'webauthn' matters in the input fields
2 participants