1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

[EC-598] feat: add rudimentary support for excluded credentials

This commit is contained in:
Andreas Coroiu
2023-04-05 16:43:13 +02:00
parent 183af55491
commit 034f16f29e
5 changed files with 34 additions and 12 deletions

View File

@@ -39,7 +39,6 @@ export abstract class Fido2UserInterfaceSession {
) => Promise<string | undefined>;
informExcludedCredential: (
existingCipherIds: string[],
newCredential: NewCredentialParams,
abortController?: AbortController
) => Promise<void>;
}

View File

@@ -65,11 +65,8 @@ export class Fido2AuthenticatorService implements Fido2AuthenticatorServiceAbstr
const isExcluded = await this.vaultContainsCredentials(params.excludeCredentialDescriptorList);
if (isExcluded) {
await userInterfaceSession.informExcludedCredential(
[Utils.guidToStandardFormat(params.excludeCredentialDescriptorList[0].id)],
{
credentialName: params.rpEntity.name,
userName: params.userEntity.displayName,
},
// [Utils.guidToStandardFormat(params.excludeCredentialDescriptorList[0].id)],
[],
abortController
);