Skip to content

LG-14327: Remove registration hints for Face or Touch Unlock#11251

Merged
aduth merged 2 commits intomainfrom
aduth-lg-14327-ft-registration-hints
Sep 17, 2024
Merged

LG-14327: Remove registration hints for Face or Touch Unlock#11251
aduth merged 2 commits intomainfrom
aduth-lg-14327-ft-registration-hints

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Sep 17, 2024

🎫 Ticket

LG-14327

🛠 Summary of changes

Updates WebAuthn registration to avoid passing hints for platform authenticators.

This was introduced in LG-12571 (#10382), specifically aimed at improving the experience of registering security keys. While the hints provided for platform authenticators weren't intended or expected to have an impact, it was discovered that providing these hints can cause browsers to impose additional constraints for registration (see related Slack discussion). Specifically, Chrome on macOS prevents the user from registering their device if iCloud Keychain syncing is not available.

📜 Testing Plan

  1. On a macOS device without iCloud Keychain (e.g. GFE), visit http://localhost:3000
  2. Sign in
  3. On account dashboard, click "Add Face or Touch Unlock" in sidebar
  4. Add a Face or Touch Unlock device

Before: You'd be unable.
After: You can save a device-bound credential.

👀 Screenshots

Before After
image image

So that we can actually have test coverage
changelog: Internal, WebAuthn, Remove registration hints for Face or Touch Unlock
@aduth aduth requested a review from a team September 17, 2024 17:04
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of the changes can be summed up as: Minimize what happens in the pack because it's untested, and move the logic into the JavaScript package (tested). Ultimately the only change is that we pass undefined instead of ['client-device', 'hybrid'] for hints when platformAuthenticator is true.

@aduth aduth merged commit e920584 into main Sep 17, 2024
@aduth aduth deleted the aduth-lg-14327-ft-registration-hints branch September 17, 2024 19:58
AShukla-GSA pushed a commit that referenced this pull request Sep 30, 2024
* Move hints assignment into WebAuthn package

So that we can actually have test coverage

* LG-14327: Remove registration hints for Face or Touch Unlock

changelog: Internal, WebAuthn, Remove registration hints for Face or Touch Unlock
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

Successfully merging this pull request may close these issues.

2 participants