Browse Source

[PM-3936] [PM-4174] Update authenticator selection options (#3340)

* [PM-3936] [PM-4174] feat: update `UserVerificationRequirement` and `requireResidentKey`

* [PM-3936] fix: lint
pull/3441/head
Andreas Coroiu 2 years ago committed by GitHub
parent
commit
627f4ffa39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/Core/Services/Implementations/UserService.cs

6
src/Core/Services/Implementations/UserService.cs

@ -540,8 +540,8 @@ public class UserService : UserManager<User>, IUserService, IDisposable @@ -540,8 +540,8 @@ public class UserService : UserManager<User>, IUserService, IDisposable
var authenticatorSelection = new AuthenticatorSelection
{
AuthenticatorAttachment = null,
RequireResidentKey = false, // TODO: This is using the old residentKey selection variant, we need to update our lib so that we can set this to preferred
UserVerification = UserVerificationRequirement.Preferred
RequireResidentKey = true,
UserVerification = UserVerificationRequirement.Required
};
var extensions = new AuthenticationExtensionsClientInputs { };
@ -604,7 +604,7 @@ public class UserService : UserManager<User>, IUserService, IDisposable @@ -604,7 +604,7 @@ public class UserService : UserManager<User>, IUserService, IDisposable
{
UserVerificationMethod = true
};
var options = _fido2.GetAssertionOptions(existingCredentials, UserVerificationRequirement.Preferred, exts);
var options = _fido2.GetAssertionOptions(existingCredentials, UserVerificationRequirement.Required, exts);
// TODO: temp save options to user record somehow

Loading…
Cancel
Save