1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 10:43:35 +00:00

[PM-4756] [PM-4755] Add BE and BS flags, and credProps (#7947)

* [PM-4756] feat: set BE and BS flags

* [PM-4755] feat: add support for credProps.rk

* [PM-4755] feat: add extension support to page-script object mapping
This commit is contained in:
Andreas Coroiu
2024-02-16 10:55:51 +01:00
committed by GitHub
parent 111c102018
commit b0dd64bab4
6 changed files with 72 additions and 8 deletions

View File

@@ -33,7 +33,9 @@ export class WebauthnUtils {
transports: credential.transports,
type: credential.type,
})),
extensions: undefined, // extensions not currently supported
extensions: {
credProps: keyOptions.extensions?.credProps,
},
pubKeyCredParams: keyOptions.pubKeyCredParams.map((params) => ({
alg: params.alg,
type: params.type,
@@ -78,7 +80,9 @@ export class WebauthnUtils {
return result.transports;
},
} as AuthenticatorAttestationResponse,
getClientExtensionResults: () => ({}),
getClientExtensionResults: () => ({
credProps: result.extensions.credProps,
}),
} as PublicKeyCredential;
// Modify prototype chains to fix `instanceof` calls.