コード例 #1
0
 public UserNameOrEmailLoginHandler(IVerifyCodeProvider verifyCodeProvider, IConfigProvider configProvider,
                                    IAccountAuthInfoRepository authInfoRepository, IAccountRepository repository,
                                    IPasswordHandler passwordHandler, ICacheHandler cacheHandler, ILoginLogHandler logHandler,
                                    ILogger <UserNameLoginHandler> logger) : base(verifyCodeProvider, configProvider, authInfoRepository,
                                                                                  cacheHandler, logHandler, logger)
 {
     _repository      = repository;
     _passwordHandler = passwordHandler;
 }
コード例 #2
0
 protected LoginHandlerAbstract(IVerifyCodeProvider verifyCodeProvider, IConfigProvider configProvider, IAccountAuthInfoRepository authInfoRepository, ICacheHandler cacheHandler, ILoginLogHandler logHandler, ILogger logger)
 {
     _verifyCodeProvider = verifyCodeProvider;
     _configProvider     = configProvider;
     _authInfoRepository = authInfoRepository;
     _cacheHandler       = cacheHandler;
     _logHandler         = logHandler;
     _logger             = logger;
 }
コード例 #3
0
 public AuthService(ICacheHandler cacheHandler, IAccountRepository accountRepository, IAccountAuthInfoRepository authInfoRepository, IAccountConfigRepository configRepository, IServiceProvider serviceProvider, ILoginInfo loginInfo, IConfigProvider configProvider, IVerifyCodeProvider verifyCodeProvider, IUserNameLoginHandler userNameLoginHandler, IEmailLoginHandler emailLoginHandler, IUserNameOrEmailLoginHandler userNameOrEmailLoginHandler, IPhoneLoginHandler phoneLoginHandler, IPhoneVerifyCodeProvider phoneVerifyCodeProvider, IAccountPermissionResolver permissionResolver, ICustomLoginHandler customLoginHandler)
 {
     _cacheHandler                = cacheHandler;
     _accountRepository           = accountRepository;
     _authInfoRepository          = authInfoRepository;
     _configRepository            = configRepository;
     _serviceProvider             = serviceProvider;
     _loginInfo                   = loginInfo;
     _configProvider              = configProvider;
     _verifyCodeProvider          = verifyCodeProvider;
     _userNameLoginHandler        = userNameLoginHandler;
     _emailLoginHandler           = emailLoginHandler;
     _userNameOrEmailLoginHandler = userNameOrEmailLoginHandler;
     _phoneLoginHandler           = phoneLoginHandler;
     _phoneVerifyCodeProvider     = phoneVerifyCodeProvider;
     _permissionResolver          = permissionResolver;
     _customLoginHandler          = customLoginHandler;
 }
コード例 #4
0
ファイル: AuthService.cs プロジェクト: yh-test/NetModular
 public AuthService(ICacheHandler cacheHandler, IAccountRepository accountRepository, IAccountAuthInfoRepository authInfoRepository, IAccountConfigRepository configRepository, IServiceProvider serviceProvider, IMenuRepository menuRepository, IMapper mapper, IButtonRepository buttonRepository, ILoginInfo loginInfo, IVerifyCodeProvider verifyCodeProvider, UserNameLoginHandler userNameLoginHandler, EmailLoginHandler emailLoginHandler, UserNameOrEmailLoginHandler userNameOrEmailLoginHandler, PhoneLoginHandler phoneLoginHandler, IPhoneVerifyCodeProvider phoneVerifyCodeProvider, IConfigProvider configProvider)
 {
     _cacheHandler                = cacheHandler;
     _accountRepository           = accountRepository;
     _authInfoRepository          = authInfoRepository;
     _configRepository            = configRepository;
     _serviceProvider             = serviceProvider;
     _menuRepository              = menuRepository;
     _mapper                      = mapper;
     _buttonRepository            = buttonRepository;
     _loginInfo                   = loginInfo;
     _verifyCodeProvider          = verifyCodeProvider;
     _userNameLoginHandler        = userNameLoginHandler;
     _emailLoginHandler           = emailLoginHandler;
     _userNameOrEmailLoginHandler = userNameOrEmailLoginHandler;
     _phoneLoginHandler           = phoneLoginHandler;
     _phoneVerifyCodeProvider     = phoneVerifyCodeProvider;
     _configProvider              = configProvider;
 }
コード例 #5
0
 public DefaultPhoneLoginHandler(IVerifyCodeProvider verifyCodeProvider, IConfigProvider configProvider, IAccountAuthInfoRepository authInfoRepository, IAccountRepository repository, ICacheHandler cacheHandler, ILoginLogHandler logHandler, ILogger <DefaultUserNameLoginHandler> logger, IPhoneVerifyCodeProvider phoneVerifyCodeProvider) : base(verifyCodeProvider, configProvider, authInfoRepository, cacheHandler, logHandler, logger)
 {
     _repository = repository;
     _phoneVerifyCodeProvider = phoneVerifyCodeProvider;
 }
コード例 #6
0
 public DefaultUserNameOrEmailLoginHandler(ILogger <LoginHandlerAbstract> logger, IVerifyCodeProvider verifyCodeProvider, IConfigProvider configProvider, IAccountAuthInfoRepository authInfoRepository, ICacheHandler cacheHandler, ILoginLogProvider logHandler, ITenantResolver tenantResolver, IPasswordHandler passwordHandler, IAccountRepository repository) : base(logger, verifyCodeProvider, configProvider, authInfoRepository, cacheHandler, logHandler, tenantResolver)
 {
     _passwordHandler = passwordHandler;
     _repository      = repository;
 }
コード例 #7
0
 public DefaultPhoneLoginHandler(ILogger <LoginHandlerAbstract> logger, IVerifyCodeProvider verifyCodeProvider, IConfigProvider configProvider, IAccountAuthInfoRepository authInfoRepository, ICacheHandler cacheHandler, ILoginLogProvider logHandler, ITenantResolver tenantResolver, IAccountRepository repository, IPhoneVerifyCodeProvider phoneVerifyCodeProvider) : base(logger, verifyCodeProvider, configProvider, authInfoRepository, cacheHandler, logHandler, tenantResolver)
 {
     _repository = repository;
     _phoneVerifyCodeProvider = phoneVerifyCodeProvider;
 }