コード例 #1
0
 public SessionController(
     ILoggerFactory loggerFactory,
     IUserRepository userRepository,
     ICtfConfigurationLoader ctfConfigurationLoader,
     UserPreviewRepository userPreviewRepository,
     OAuthProviderSelector oAuthSelector,
     JwtHandler jwt,
     ActionTokenPairHandler actionTokenPairHandler,
     PasswordHandler pwdHandler,
     IOAuthStateRepository oAuthStateRepository,
     IMfaStateRepository mfaStateRepository,
     LoginSettingsRepository loginSettingsRepository,
     MfaValidatorService mfaValidator,
     IMfaRepository mfaRepository)
     : base(loggerFactory, userRepository, userPreviewRepository, ctfConfigurationLoader)
 {
     this.OAuthSelector           = oAuthSelector;
     this.Jwt                     = jwt;
     this.ActionTokenPairHandler  = actionTokenPairHandler;
     this.Password                = pwdHandler;
     this.OAuthStateRepository    = oAuthStateRepository;
     this.MfaStateRepository      = mfaStateRepository;
     this.LoginSettingsRepository = loginSettingsRepository;
     this.MfaValidator            = mfaValidator;
     this.MfaRepository           = mfaRepository;
 }
コード例 #2
0
 public TeamController(
     ILoggerFactory loggerFactory,
     IUserRepository userRepository,
     UserPreviewRepository userPreviewRepository,
     ICtfConfigurationLoader ctfConfigurationLoader)
     : base(loggerFactory, userRepository, userPreviewRepository, ctfConfigurationLoader)
 {
 }
コード例 #3
0
 protected RosettaControllerBase(
     ILoggerFactory loggerFactory,
     IUserRepository userRepository,
     UserPreviewRepository userPreviewRepository,
     ICtfConfigurationLoader ctfConfigurationLoader)
 {
     this.LoggerFactory         = loggerFactory;
     this.UserRepository        = userRepository;
     this.UserPreviewRepository = userPreviewRepository;
     this.EventConfiguration    = ctfConfigurationLoader.LoadEventData();
 }
コード例 #4
0
 public CtfTimeController(
     ILoggerFactory loggerFactory,
     IUserRepository userRepository,
     UserPreviewRepository userPreviewRepository,
     ICtfConfigurationLoader ctfConfigurationLoader,
     ICtfChallengeRepository challengeRepository,
     ICtfChallengeCacheRepository ctfChallengeCacheRepository)
     : base(loggerFactory, userRepository, userPreviewRepository, ctfConfigurationLoader)
 {
     this.ChallengeRepository      = challengeRepository;
     this.ChallengeCacheRepository = ctfChallengeCacheRepository;
 }
コード例 #5
0
 public ChallengesController(
     ILoggerFactory loggerFactory,
     IUserRepository userRepository,
     UserPreviewRepository userPreviewRepository,
     ICtfConfigurationLoader ctfConfigurationLoader,
     ICtfChallengeRepository challengeRepository,
     ChallengePreviewRepository challengePreviewRepository,
     ICtfChallengeCacheRepository challengeCacheRepository,
     ScoreCalculatorService scoreCalculator)
     : base(loggerFactory, userRepository, userPreviewRepository, ctfConfigurationLoader)
 {
     this.ChallengeRepository        = challengeRepository;
     this.ChallengePreviewRepository = challengePreviewRepository;
     this.ChallengeCacheRepository   = challengeCacheRepository;
     this.ScoreCalculator            = scoreCalculator;
 }