mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 13:38:13 -05:00
Discourage user verification on WebAuthn enroll (#1322)
This commit is contained in:
parent
e7892d8a28
commit
cb9ed50248
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user