public CredentialsAuthenticator(ITokenHelper tokenHelper, IHashHelper hashHelper, IUserManager userManager, IHttpRequestMessageHandler httpRequestMessageHandler)
 {
     _tokenHelper = tokenHelper;
     _hashHelper  = hashHelper;
     _userManager = userManager;
     _httpRequestMessageHandler = httpRequestMessageHandler;
 }
예제 #2
0
 public HttpRequestMessageHandler(IOptions <WMSProxyOptions> options, IHashHelper hashHelper, ICredentialExtractor credentialExtractor, ITokenHelper tokenHelper)
 {
     _options             = options.Value;
     _hashHelper          = hashHelper;
     _credentialExtractor = credentialExtractor;
     _tokenHelper         = tokenHelper;
 }
 public AuthenticationService(IUserRepository userRepository, ITokenBuilder tokenBuilderService,
                              IHashHelper hashHelper)
 {
     _userRepository      = userRepository;
     _tokenBuilderService = tokenBuilderService;
     _hashHelper          = hashHelper;
 }
예제 #4
0
 public AppUserRepository(
     AppDomainContext context,
     IHashHelper hashHelper
     ) : base(context)
 {
     _hashHelper = hashHelper;
 }
예제 #5
0
 public SimpleUserManager(ILogger logger, IUserDataAccessService userDataAccess, IHashHelper hashHelper, GameSessions gameSessions)
 {
     _logger         = logger;
     _userDataAccess = userDataAccess;
     _hashHelper     = hashHelper;
     _gameSessions   = gameSessions;
 }
예제 #6
0
 public UsersController(ILayersCmsUserReads userReads, 
     ILayersCmsUserWrites userWrites,
     IHashHelper hashHelper)
     : base(userReads)
 {
     _userReads = userReads;
     _userWrites = userWrites;
     _hashHelper = hashHelper;
 }
        public UsersController(IUserService userService, IConfiguration configuration, IHashHelper hashHelper, ILogger <UsersController> logger)
        {
            _logger               = logger;
            _jwtSigningKey        = configuration["JWT:SigningKey"];
            _authSessionInMinutes = Double.TryParse(configuration["Auth:SessionInMinutes"], out _authSessionInMinutes) ? _authSessionInMinutes : 30.0;

            _userService = userService;
            _hashHelper  = hashHelper;
        }
 public HmacAuthenticationHandler(ISecretRepository secretRepository,
     IBuildMessageRepresentation representationBuilder,
     ICalculateSignature signatureCalculator,
     IHashHelper hashHelper)
 {
     _secretRepository = secretRepository;
     _representationBuilder = representationBuilder;
     _signatureCalculator = signatureCalculator;
     _hashHelper = hashHelper;
 }
예제 #9
0
        public WMSResponseHandler(IHashHelper hashHelper, IOptions <RuntimeOptions> runtimeOptions)
        {
            _hashHelper = hashHelper ?? throw new ArgumentNullException(nameof(hashHelper));

            if (runtimeOptions == null)
            {
                throw new ArgumentNullException(nameof(runtimeOptions));
            }

            _runtimeOptions = runtimeOptions.Value;
        }
예제 #10
0
 public LoginController(IUnitOfWork unitOfWork, IHashHelper hashHelper)
 {
     _unitOfWork = unitOfWork;
     _hashHelper = hashHelper;
     //logger.Trace("Sample trace message");
     //logger.Debug("Sample debug message");
     //logger.Info("Sample informational message");
     //logger.Warn("Sample warning message");
     //logger.Error("Sample error message");
     //logger.Fatal("Sample fatal error message");
 }
예제 #11
0
 public UserService(
     IUserRepository userRepository,
     ITokenHelper tokenHelper,
     IPasswordHelper passwordHelper,
     IHashHelper hashHelper
     )
 {
     _userRepository = userRepository;
     _tokenHelper    = tokenHelper;
     _passwordHelper = passwordHelper;
     _hashHelper     = hashHelper;
 }
예제 #12
0
 public LoginService( IUserRepository UserRepository, IHashHelper HashHelper, ISettingRepository SettingRepository )
 {
     if ( UserRepository == null ) {
         throw new ArgumentNullException( "UserRepository" );
     }
     if ( HashHelper == null ) {
         throw new ArgumentNullException( "HashHelper" );
     }
     if ( SettingRepository == null ) {
         throw new ArgumentNullException( "SettingRepository" );
     }
     this.userRepository = UserRepository;
     this.hashHelper = HashHelper;
     this.settingRepository = SettingRepository;
 }
예제 #13
0
        public PersistenceWorker(ILogger logger, GameSessions gameSessions,
                                 IGameDataPersisterFactory gameDataPersisterFactory, IHashHelper hashHelper, PerformanceInfo performanceInfo)
        {
            _logger                   = logger;
            _gameSessions             = gameSessions;
            _gameDataPersisterFactory = gameDataPersisterFactory;
            _hashHelper               = hashHelper;
            _performanceInfo          = performanceInfo;

            Name = "Games persistence worker";

            _gameDataPersisterFactory = gameDataPersisterFactory;
            for (int i = 0; i < PersistTimeSlotsUsers.Length; i++)
            {
                PersistTimeSlotsUsers[i] = new ConcurrentBag <Tuple <string, string, DateTime> >();
            }
            gameSessions.GameStarted     += GameSessions_GameStarted;
            gameSessions.GameRemoved     += GameSessions_GameRemoved;
            gameSessions.AllGamesRemoved += GameSessions_AllGamesRemoved;
        }
예제 #14
0
 public void Setup()
 {
     _sut = new HashHelper();
 }
예제 #15
0
 public UserLogic(IUserRepository repo, IHashHelper helper)
 {
     _repo   = repo;
     _helper = helper;
 }
예제 #16
0
 public RegisterService(IHashHelper hashHelper, IUserRepository userRepository)
 {
     _hashHelper     = hashHelper;
     _userRepository = userRepository;
 }
예제 #17
0
 public void Setup()
 {
     _sut     = new HashHelper();
     _fixture = new Fixture();
 }
예제 #18
0
 /// <param name="hashHelper">The hashing helper to hash the user's password</param>
 public DatabaseSchemaSetup(IHashHelper hashHelper)
 {
     _hashHelper = hashHelper;
 }
예제 #19
0
 public UserDBSeeder(UserDBContext context, IHashHelper hashHelper, IUserManager userManager)
 {
     _context     = context;
     _hashHelper  = hashHelper;
     _userManager = userManager;
 }
예제 #20
0
 public AuthController(IHashHelper hashHelper, IUserRepository userRepository, IAuthenticationService authenticationService)
 {
     this._hashHelper            = hashHelper;
     this._userRepository        = userRepository;
     this._authenticationService = authenticationService;
 }
        public ObjectStateManager(IHashHelper hashHelper, IStateStore stateStore)
        {
            _hashHelper = Guard.EnsureIsNotNull("hashHelper", hashHelper);

            //InitialObjectStates = new ConcurrentDictionary<string, InitialObjectState>();
        }
예제 #22
0
 public CmsConfigController(IHashHelper hashHelper)
 {
     _hashHelper = hashHelper;
 }
예제 #23
0
 public APIHelper(IStockDataUnitOfWork unitOfWork, IHashHelper hashHelper)
 {
     _hashHelper = hashHelper;
     _unitOfWork = unitOfWork;
 }
예제 #24
0
 public CalendarController(IUnitOfWork unitOfWork, IHashHelper hashHelper)
 {
     _unitOfWork = unitOfWork;
 }
예제 #25
0
 public ClientController(IOptions <TokenSettings> settings, IDataRepository dataRepository, IHashHelper hashHelper)
 {
     _settings       = settings.Value ?? throw new ArgumentNullException(nameof(settings));
     _dataRepository = dataRepository ?? throw new ArgumentNullException(nameof(dataRepository));
     _hashHelper     = hashHelper ?? throw new ArgumentNullException(nameof(hashHelper));
 }
예제 #26
0
 public AuthRepository(ExampleDbContext context, IHashHelper hashHelper)
 {
     _context    = context;
     _hashHelper = hashHelper;
 }
예제 #27
0
 public LoginDataService(IAppDataService appDataService, IUserInfo userInfo, IHashHelper hashHelper)
 {
     this.appDataService = appDataService;
     this.userInfo       = userInfo;
     this.hashHelper     = hashHelper;
 }
예제 #28
0
 public APIHelper(IStockDataUnitOfWork unitOfWork, IHashHelper hashHelper)
 {
     _hashHelper = hashHelper;
     _unitOfWork = unitOfWork;
 }
예제 #29
0
 public UserRepository(AppDbContext context, IHashHelper hashHelper)
     : base(context)
 {
     _hashHelper = hashHelper;
 }
예제 #30
0
 public UserManagement(IUserDAL userDal, IHashHelper hashHelper)
 {
     _userDal    = userDal;
     _hashHelper = hashHelper;
 }
예제 #31
0
 public UsersRepo(MyFaceDbContext context, IHashHelper hashHelper)
 {
     _context    = context;
     _hashHelper = hashHelper;
 }
예제 #32
0
 public UsersController(IUnitOfWork unitOfWork, IHashHelper hashHelper)
 {
     _hashHelper = hashHelper;
     _unitOfWork = unitOfWork;
 }
예제 #33
0
        public Configuration()
        {
            AutomaticMigrationsEnabled = false;

            _hashHelper = new HashHelper();
        }