mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
[PM-4358] Passkey can be Created but not Retrieved on eBay (#6617)
* changed behaviour to require user verification when preferred use preferred when user verification is not defined * changed behaviour to require user verification when preferred use preferred when user verification is not defined
This commit is contained in:
parent
21b1f87724
commit
5dd2e3a1e3
@ -363,9 +363,14 @@ function mapToMakeCredentialParams({
|
||||
(params.authenticatorSelection?.residentKey === undefined &&
|
||||
params.authenticatorSelection?.requireResidentKey === true);
|
||||
|
||||
const requireUserVerification =
|
||||
params.authenticatorSelection?.userVerification === "required" ||
|
||||
params.authenticatorSelection?.userVerification === "preferred" ||
|
||||
params.authenticatorSelection?.userVerification === undefined;
|
||||
|
||||
return {
|
||||
requireResidentKey,
|
||||
requireUserVerification: params.authenticatorSelection?.userVerification === "required",
|
||||
requireUserVerification,
|
||||
enterpriseAttestationPossible: params.attestation === "enterprise",
|
||||
excludeCredentialDescriptorList,
|
||||
credTypesAndPubKeyAlgs,
|
||||
@ -398,9 +403,14 @@ function mapToGetAssertionParams({
|
||||
type: "public-key",
|
||||
}));
|
||||
|
||||
const requireUserVerification =
|
||||
params.userVerification === "required" ||
|
||||
params.userVerification === "preferred" ||
|
||||
params.userVerification === undefined;
|
||||
|
||||
return {
|
||||
rpId: params.rpId,
|
||||
requireUserVerification: params.userVerification === "required",
|
||||
requireUserVerification,
|
||||
hash: clientDataHash,
|
||||
allowCredentialDescriptorList,
|
||||
extensions: {},
|
||||
|
Loading…
Reference in New Issue
Block a user