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

Set residentKey option for webauthn to preferred #11489

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

vrajmohan
Copy link
Member

@vrajmohan vrajmohan commented Nov 8, 2024

It is expected that this will allow Android devices to create synced credentials using Google Password Manager, and for such devices to provide an AAGUID value.

changelog: User-facing Improvements, F/T Unlock passkeys, Set residentKey option for webauthn to preferred

🎫 Ticket

Link to the relevant ticket:
LG-14911

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Use Face/Touch Unlock to create an account. There should be no change in behavior.
  • If you use an Android device, you should see a value for aaguid saved in the table webauthn_configurations.

@vrajmohan vrajmohan force-pushed the vm-webauthn-residentKey-preferred branch from 50cbf0e to ebfddb0 Compare November 12, 2024 03:57
@vrajmohan vrajmohan marked this pull request as ready for review November 12, 2024 14:59
@vrajmohan vrajmohan requested a review from a team November 12, 2024 14:59
Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

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

This should only be configured for platform authenticators. The WebAuthn code is shared between Security Key (roaming authenticator) and Face or Touch Unlock (platform authenticator).

You can see an example of how to differentiate on the line preceding the new configuration (authenticatorAttachment)

@@ -101,6 +101,7 @@ async function enrollWebauthnDevice({
// contributes to abandonment or loss of access.
userVerification: 'discouraged',
authenticatorAttachment: platformAuthenticator ? 'platform' : 'cross-platform',
residentKey: platformAuthenticator ? 'preferred' : undefined,
Copy link
Member Author

Choose a reason for hiding this comment

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

IMO, this feels less opinionated than "discouraged".

@vrajmohan vrajmohan requested a review from aduth November 12, 2024 19:50
Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Tested on Android and saw the passkey prompt and AAGUID logging

See https://cm-jira.usa.gov/browse/LG-14911. It is expected that
this will allow Android devices to create synced credentials using
Google Password Manager, and for such devices to provide an AAGUID value.

changelog: User-facing Improvements, F/T Unlock passkeys, Prefer residentKey for webauthn platform authenticators
@vrajmohan vrajmohan force-pushed the vm-webauthn-residentKey-preferred branch from 0b671c3 to 9db9245 Compare November 14, 2024 19:27
@vrajmohan vrajmohan merged commit ff42f7d into main Nov 14, 2024
2 checks passed
@vrajmohan vrajmohan deleted the vm-webauthn-residentKey-preferred branch November 14, 2024 20:17
@aduth aduth mentioned this pull request Nov 19, 2024
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