Beispiel #1
0
 public CustomUserManager(IUserStore <ApplicationUser> store, IOptions <IdentityOptions> optionsAccessor, IPasswordHasher <ApplicationUser> passwordHasher, IUserPasswordHasher userPasswordHasher,
                          IEnumerable <IUserValidator <ApplicationUser> > userValidators, IEnumerable <IPasswordValidator <ApplicationUser> > passwordValidators,
                          ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, IServiceProvider services,
                          ILogger <UserManager <ApplicationUser> > logger, RoleManager <Role> roleManager, IPlatformMemoryCache memoryCache, IEventPublisher eventPublisher)
     : base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
 {
     _memoryCache        = memoryCache;
     _roleManager        = roleManager;
     _eventPublisher     = eventPublisher;
     _userPasswordHasher = userPasswordHasher;
 }
 public CustomUserManager(IUserStore <ApplicationUser> store, IOptions <IdentityOptions> optionsAccessor, IPasswordHasher <ApplicationUser> passwordHasher, IUserPasswordHasher userPasswordHasher,
                          IOptions <UserOptionsExtended> userOptionsExtended,
                          IEnumerable <IUserValidator <ApplicationUser> > userValidators, IEnumerable <IPasswordValidator <ApplicationUser> > passwordValidators,
                          ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, IServiceProvider services,
                          ILogger <UserManager <ApplicationUser> > logger, RoleManager <Role> roleManager, IPlatformMemoryCache memoryCache, IEventPublisher eventPublisher, Func <ISecurityRepository> repositoryFactory, IOptions <PasswordOptionsExtended> passwordOptionsExtended)
     : base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
 {
     _memoryCache             = memoryCache;
     _roleManager             = roleManager;
     _eventPublisher          = eventPublisher;
     _userPasswordHasher      = userPasswordHasher;
     _userOptionsExtended     = userOptionsExtended.Value;
     _repositoryFactory       = repositoryFactory;
     _passwordOptionsExtended = passwordOptionsExtended.Value;
 }
Beispiel #3
0
 public SecurityController(SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, RoleManager <Role> roleManager,
                           IPermissionsRegistrar permissionsProvider, IUserSearchService userSearchService, IRoleSearchService roleSearchService,
                           IOptions <Core.Security.AuthorizationOptions> securityOptions, IPasswordCheckService passwordCheckService, IEmailSender emailSender,
                           IEventPublisher eventPublisher, IUserApiKeyService userApiKeyService, IUserPasswordHasher userPasswordHasher)
 {
     _signInManager        = signInManager;
     _userManager          = userManager;
     _securityOptions      = securityOptions.Value;
     _passwordCheckService = passwordCheckService;
     _permissionsProvider  = permissionsProvider;
     _roleManager          = roleManager;
     _userSearchService    = userSearchService;
     _roleSearchService    = roleSearchService;
     _emailSender          = emailSender;
     _eventPublisher       = eventPublisher;
     _userApiKeyService    = userApiKeyService;
     _userPasswordHasher   = userPasswordHasher;
 }