public AccountController(IUserSvc userSvc, IEmailSvc emailSvc, IAuthSvc authSvc, IHttpContextAccessor httpContextAccessor) { _userSvc = userSvc; _emailSvc = emailSvc; _authSvc = authSvc; _httpContextAccessor = httpContextAccessor; }
public ChatController( IAuthSvc authSvc, IChatRoom chatRoom, IDateTimeSvc dateTimeSvc) { this.authSvc = authSvc; this.chatRoom = chatRoom; this.dateTimeSvc = dateTimeSvc; }
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; }
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; }
public AccountController(IUserSvc userSvc, IAuthSvc authSvc) { _userSvc = userSvc; _authSvc = authSvc; }
public IActionResult Authenticate([FromServices] IAuthSvc authSvc, [FromQuery] UserAuthentication user) { var response = authSvc.AuthenticateUser(user.Email, user.Password); return(Ok(response)); }
public AuthController(ILogger logger, IAuthSvc authSvc) : base(logger) { _authSvc = authSvc; }