Esempio n. 1
0
        public MfaFido2RegisterController(
            Fido2Storage fido2Storage,
            UserManager <IdentityUser> userManager,
            IOptions <Fido2Configuration> optionsFido2Configuration)
        {
            _userManager = userManager;
            _optionsFido2Configuration = optionsFido2Configuration;
            _fido2Storage = fido2Storage;

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