Esempio n. 1
0
 public AccountController(IUserSvc userSvc, IEmailSvc emailSvc, IAuthSvc authSvc, IHttpContextAccessor httpContextAccessor)
 {
     _userSvc             = userSvc;
     _emailSvc            = emailSvc;
     _authSvc             = authSvc;
     _httpContextAccessor = httpContextAccessor;
 }
Esempio n. 2
0
 public ChatController(
     IAuthSvc authSvc,
     IChatRoom chatRoom,
     IDateTimeSvc dateTimeSvc)
 {
     this.authSvc = authSvc;
     this.chatRoom = chatRoom;
     this.dateTimeSvc = dateTimeSvc;
 }
Esempio n. 3
0
 public RemindersSvc(
     IAuthSvc authSvc,
     IUnitOfWork unitOfWork,
     IReminderDomainRepository reminderDomainRepository,
     IReminderQueryRepository reminderQueryRepository)
 {
     _authSvc    = authSvc;
     _unitOfWork = unitOfWork;
     _reminderDomainRepository = reminderDomainRepository;
     _reminderQueryRepository  = reminderQueryRepository;
 }
 public UserAuthenticationHandler(IOptionsMonitor <UserAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock,
                                  UserManager <ApplicationUser> userManager,
                                  IAuthSvc authSvc,
                                  IOptions <AppSettings> appSettings, IOptions <DataProtectionKeys> dataProtectionKeys,
                                  IServiceProvider provider) : base(options, logger, encoder, clock)
 {
     _userManager        = userManager;
     _appSettings        = appSettings.Value;
     _provider           = provider;
     _dataProtectionKeys = dataProtectionKeys.Value;
     _authSvc            = authSvc;
 }
Esempio n. 5
0
 public AccountController(IOptions <AppSettings> appSettings,
                          IServiceProvider provider,
                          ApplicationDbContext db,
                          IAuthSvc authSvc,
                          ICookieSvc cookieSvc, IOptions <DataProtectionKeys> dataProtectionKeys)
 {
     _appSettings        = appSettings.Value;
     _provider           = provider;
     _db                 = db;
     _authSvc            = authSvc;
     _cookieSvc          = cookieSvc;
     _dataProtectionKeys = dataProtectionKeys.Value;
 }
Esempio n. 6
0
 public AccountController(IUserSvc userSvc, IAuthSvc authSvc)
 {
     _userSvc = userSvc;
     _authSvc = authSvc;
 }
Esempio n. 7
0
        public IActionResult Authenticate([FromServices] IAuthSvc authSvc, [FromQuery] UserAuthentication user)
        {
            var response = authSvc.AuthenticateUser(user.Email, user.Password);

            return(Ok(response));
        }
Esempio n. 8
0
 public AuthController(ILogger logger, IAuthSvc authSvc) : base(logger)
 {
     _authSvc = authSvc;
 }