Skip to content

LG-12213: Fix redirect when selecting Face/Touch on unsupported device#11247

Merged
aduth merged 4 commits intomainfrom
aduth-lg-12213-ft-redirect-session
Sep 17, 2024
Merged

LG-12213: Fix redirect when selecting Face/Touch on unsupported device#11247
aduth merged 4 commits intomainfrom
aduth-lg-12213-ft-redirect-session

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Sep 17, 2024

🎫 Ticket

LG-12213

🛠 Summary of changes

Fixes an issue where a user may be redirected away from authenticating with Face or Touch Unlock if they are on an unsupported device, and if they have a stronger authenticator available.

For context, we detect if the current device has a platform authenticator available when signing in, and if they're on a "supported" device for enrolling Face or Touch Unlock (iOS 16+, Android 9+). If they are not on a supported device, but the user has a platform authenticator credential associated with their device, we redirect them to their list of MFA options. They can choose to still authenticator with Face or Touch Unlock if they want.

The problem is that the check was performed when the user arrives at the Face or Touch Unlock verification screen, assuming they'd be redirected their above other methods since it's a strong authentication method. However, there is a stronger authentication method (PIV), and so the user wouldn't necessarily always be directed to verify with Face or Touch Unlock. If the user has both a PIV and Face or Touch Unlock, and chose to switch to use their Face or Touch Unlock, they'd be confusingly bounced out of the Face or Touch Unlock verification screen.

📜 Testing Plan

  1. Prerequisite: Have an account with both PIV and Face or Touch Unlock
  2. Go to https://localhost:3000 on a device that is "unsupported". A desktop computer is your best bet.
  3. Sign in
  4. (If not prompted for MFA, click "Forget all browsers" from Account sidebar, confirm, sign out, and start over)
  5. When prompted for PIV authenticator, click "Choose another authentication method"
  6. Choose "Face or Touch Unlock"
  7. Click "Continue"

Before: It would appear that nothing happened, that the page listing MFA methods reloaded. It would work on a second submission.
After: You arrive at the Face or Touch Unlock verification screen.

👀 Screenshots

Before:

before.mov

After:

after.mov

changelog: Bug Fixes, Two-Factor Authentication, Fix redirect when choosing to authenticate with Face/Touch Unlock on unsupported device if stronger authenticator exists
@aduth aduth requested a review from a team September 17, 2024 13:55
@aduth aduth merged commit 298f92b into main Sep 17, 2024
@aduth aduth deleted the aduth-lg-12213-ft-redirect-session branch September 17, 2024 17:22
AShukla-GSA pushed a commit that referenced this pull request Sep 30, 2024
#11247)

* LG-12213: Fix redirect when selecting Face/Touch on unsupported device

changelog: Bug Fixes, Two-Factor Authentication, Fix redirect when choosing to authenticate with Face/Touch Unlock on unsupported device if stronger authenticator exists

* Remove platform=false expectations from spec

* Remove redundant continue_as

* Inline email parameter
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