Пример #1
0
        public ExternalLoginService(
            SignInManager <AppUserEntity> signInManager,
            UserManager <AppUserEntity> userManager,
            IIdentityUIUserInfoService identityUIUserInfoService,
            ISessionService sessionService,
            ILoginFilter canLoginService,
            IOptions <IdentityUIOptions> identityUIOptions,
            IOptions <IdentityUIEndpoints> identityUIEndpoints,
            IValidator <ExternalLoginRequest> externalLoginRequestValidator,
            ILogger <ExternalLoginService> logger)
        {
            _signInManager = signInManager;
            _userManager   = userManager;

            _identityUIUserInfoService = identityUIUserInfoService;
            _sessionService            = sessionService;
            _canLoginService           = canLoginService;

            _identityUIOptions   = identityUIOptions.Value;
            _identityUIEndpoints = identityUIEndpoints.Value;

            _externalLoginRequestValidator = externalLoginRequestValidator;

            _logger = logger;
        }
Пример #2
0
        public LoginService(
            SignInManager <AppUserEntity> signInManager,
            UserManager <AppUserEntity> userManager,
            ISessionService sessionService,
            IHttpContextAccessor httpContextAccessor,
            ILoginFilter canLoginService,
            IValidator <LoginRequest> loginValidator,
            IValidator <LoginWith2faRequest> loginWith2faValidator,
            IValidator <LoginWithRecoveryCodeRequest> loginWithRecoveryCodeValidator,
            ILogger <LoginService> logger)
        {
            _signInManager = signInManager;
            _userManager   = userManager;

            _httpContextAccessor = httpContextAccessor;
            _sessionService      = sessionService;
            _canLoginService     = canLoginService;

            _loginValidator                 = loginValidator;
            _lginwith2faValidator           = loginWith2faValidator;
            _loginWithRecoveryCodeValidator = loginWithRecoveryCodeValidator;

            _logger = logger;
        }