Пример #1
0
 public BasicAuthentication(IRepository <User> userRepo,
                            ITokenAuthentication tokenAuth,
                            IHttpContextAccessor httpContextAccessor)
 {
     _userRepo            = userRepo;
     _tokenAuth           = tokenAuth;
     _httpContextAccessor = httpContextAccessor;
 }
Пример #2
0
 public Authentication(IRepository <User> userRepo,
                       IPasswordHasherService hasher,
                       IPasswordRegex passwordRegex,
                       ITokenAuthentication tokenAuth,
                       IHttpContextAccessor httpContextAccessor) : base(userRepo, tokenAuth, httpContextAccessor)
 {
     _userRepo      = userRepo;
     _hasher        = hasher;
     _passwordRegex = passwordRegex;
     _tokenAuth     = tokenAuth;
 }
 public AuthenticationController(IAuthentication auth,
                                 IConfiguration configuration,
                                 ITokenAuthentication tokenAuth,
                                 IRepository <User> userRepo,
                                 IMailer mailer)
 {
     _auth          = auth;
     _configuration = configuration;
     _tokenAuth     = tokenAuth;
     _userRepo      = userRepo;
     _mailer        = mailer;
 }
Пример #4
0
 private ApplicationManager()
 {
     _servers               = new List <Server>();
     Commands               = new List <Command>();
     TaskStatuses           = new List <AsyncStatus>();
     MessageTokens          = new List <MessageToken>();
     ClientSvc              = new ClientService();
     AliasSvc               = new AliasService();
     PenaltySvc             = new PenaltyService();
     ConfigHandler          = new BaseConfigurationHandler <ApplicationConfiguration>("IW4MAdminSettings");
     StartTime              = DateTime.UtcNow;
     OnQuit                 = new ManualResetEventSlim();
     PageList               = new PageList();
     AdditionalEventParsers = new List <IEventParser>();
     AdditionalRConParsers  = new List <IRConParser>();
     OnServerEvent         += OnGameEvent;
     OnServerEvent         += EventApi.OnGameEvent;
     _authenticator         = new TokenAuthentication();
     _metaService           = new MetaService();
 }
 public WebApiAuthenticationHandler(ITokenAuthentication tokenAuthentication)
 {
     this.authentication = tokenAuthentication;
 }
Пример #6
0
 public CompetitionsController(ICompetitionRepository competitionRepository, IMapper mapper,  ITokenAuthentication authentication)
 {
     _competitionRepository = competitionRepository;
     _mapper = mapper;
     _authentication = authentication;
 }
Пример #7
0
 public UsuarioController(ITokenAuthentication authentication)
 {
     this.authentication = authentication;
 }