mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00:00
Discourage user verification on WebAuthn enroll (#1322)
This commit is contained in:
@@ -526,7 +526,13 @@ namespace Bit.Core.Services
|
|||||||
.Select(k => new TwoFactorProvider.WebAuthnData((dynamic)k.Value).Descriptor)
|
.Select(k => new TwoFactorProvider.WebAuthnData((dynamic)k.Value).Descriptor)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
var options = _fido2.RequestNewCredential(fidoUser, excludeCredentials, AuthenticatorSelection.Default, AttestationConveyancePreference.None);
|
var authenticatorSelection = new AuthenticatorSelection
|
||||||
|
{
|
||||||
|
AuthenticatorAttachment = null,
|
||||||
|
RequireResidentKey = false,
|
||||||
|
UserVerification = UserVerificationRequirement.Discouraged
|
||||||
|
};
|
||||||
|
var options = _fido2.RequestNewCredential(fidoUser, excludeCredentials, authenticatorSelection, AttestationConveyancePreference.None);
|
||||||
|
|
||||||
provider.MetaData["pending"] = options.ToJson();
|
provider.MetaData["pending"] = options.ToJson();
|
||||||
providers[TwoFactorProviderType.WebAuthn] = provider;
|
providers[TwoFactorProviderType.WebAuthn] = provider;
|
||||||
|
|||||||
Reference in New Issue
Block a user