public AuthenticatorUserManager(IUserStore <TUser> store,
                                        IOptions <IdentityOptions> optionsAccessor,
                                        IPasswordHasher <TUser> passwordHasher,
                                        IEnumerable <IUserValidator <TUser> > userValidators,
                                        IEnumerable <IPasswordValidator <TUser> > passwordValidators,
                                        ILookupNormalizer keyNormalizer,
                                        IdentityErrorDescriber errors,
                                        IServiceProvider services,
                                        ILogger <UserManager <TUser> > logger,
                                        IDataProtectionProvider dataProtectionProvider,
                                        IAuthenticatorService authenticatorService)
            : base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
        {
            dataProtectionProvider.CheckArgumentNull(nameof(dataProtectionProvider));
            authenticatorService.CheckArgumentNull(nameof(authenticatorService));

            _authenticatorService = authenticatorService;
            _dataProtector        = dataProtectionProvider.CreateProtector("AuthenticatorUserManager");
        }
Esempio n. 2
0
        public AuthenticatorTokenProvider(IAuthenticatorService authenticationService)
        {
            authenticationService.CheckArgumentNull(nameof(authenticationService));

            _authenticationService = authenticationService;
        }