public LoginModel(SignInManager <IdentityUser> signInManager,
                   Fido2Store fido2Store,
                   ILogger <LoginModel> logger)
 {
     _signInManager = signInManager;
     _fido2Store    = fido2Store;
     _logger        = logger;
 }
 public Disable2faModel(
     UserManager <IdentityUser> userManager,
     Fido2Store fido2Store,
     ILogger <Disable2faModel> logger)
 {
     _userManager = userManager;
     _fido2Store  = fido2Store;
     _logger      = logger;
 }
    public MfaFido2SignInFidoController(
        Fido2Store fido2Store,
        SignInManager <IdentityUser> signInManager,
        IOptions <Fido2Configuration> optionsFido2Configuration)
    {
        _optionsFido2Configuration = optionsFido2Configuration;
        _signInManager             = signInManager;
        _fido2Store = fido2Store;

        _lib = new Fido2(new Fido2Configuration()
        {
            ServerDomain            = _optionsFido2Configuration.Value.ServerDomain,
            ServerName              = _optionsFido2Configuration.Value.ServerName,
            Origin                  = _optionsFido2Configuration.Value.Origin,
            TimestampDriftTolerance = _optionsFido2Configuration.Value.TimestampDriftTolerance
        });
    }
Пример #4
0
    public PwFido2RegisterController(
        Fido2Store fido2Store,
        UserManager <IdentityUser> userManager,
        IOptions <Fido2Configuration> optionsFido2Configuration)
    {
        _userManager = userManager;
        _optionsFido2Configuration = optionsFido2Configuration;
        _fido2Store = fido2Store;

        _lib = new Fido2(new Fido2Configuration()
        {
            ServerDomain            = _optionsFido2Configuration.Value.ServerDomain,
            ServerName              = _optionsFido2Configuration.Value.ServerName,
            Origin                  = _optionsFido2Configuration.Value.Origin,
            TimestampDriftTolerance = _optionsFido2Configuration.Value.TimestampDriftTolerance
        });
    }