0

[webauthn] Use provider name for Windows passkeys

Use the new Windows WebAuthn v8 pwszAuthenticatorName property to label
credentials from third party providers on Windows.

Fixed: 396434681
Change-Id: I9044484a5d40617b0f1487f43710c5f659e91d8f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6270536
Commit-Queue: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Auto-Submit: Nina Satragno <nsatragno@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1421527}
This commit is contained in:
Nina Satragno
2025-02-18 11:17:17 -08:00
committed by Chromium LUCI CQ
parent 49c6c62a6c
commit fdc85d82ca
8 changed files with 88 additions and 55 deletions

@ -8409,7 +8409,8 @@ TEST_F(ResidentKeyAuthenticatorImplTest, ConditionalUI_Incognito) {
device::PublicKeyCredentialRpEntity rp(kTestRelyingPartyId);
device::PublicKeyCredentialUserEntity user({1, 2, 3, 4});
fake_win_webauthn_api_.InjectDiscoverableCredential(
/*credential_id=*/{{4, 3, 2, 1}}, std::move(rp), std::move(user));
/*credential_id=*/{{4, 3, 2, 1}}, std::move(rp), std::move(user),
/*provider_name=*/std::nullopt);
// |SelectAccount| should not be called for conditional UI requests.
test_client_.delegate_config.expected_accounts = "<invalid>";