Beispiel #1
0
 public LoginHandler(IUserService userService, IJwtHandler jwtHandler,
                     IMemoryCache cache)
 {
     this.userService = userService;
     this.jwtHandler  = jwtHandler;
     this.cache       = cache;
 }
Beispiel #2
0
 public AccountService(IJwtHandler jwtHandler,
                       IPasswordHasher <AppUser> passwordHasher /*,MyTestAuthAppContext context*/)
 {
     _jwtHandler     = jwtHandler;
     _passwordHasher = passwordHasher;
     //_context = context;
 }
Beispiel #3
0
 public AccountController(IUserService userService, IJwtHandler jwtHandler, IRoleService roleService, ILogger <AccountController> logger)
 {
     _userService = userService;
     _jwtHandler  = jwtHandler;
     _roleService = roleService;
     _logger      = logger;
 }
 public UserService(IUserRepository <User> repository, IEncrypter encrypter, IJwtHandler jwtHandler, UserManager <User> userManager)
 {
     _jwtHandler     = jwtHandler;
     _userRepository = repository;
     _encrypter      = encrypter;
     _userManager    = userManager;
 }
Beispiel #5
0
 public AuthenticationController(ICommandBus commandBus, IQueryBus queryBus,
                                 ILogger <AuthenticationController> logger, IJwtHandler jwtHandler, IEncrypter encrypter)
     : base(commandBus, queryBus, logger)
 {
     _jwtHandler = jwtHandler;
     _encrypter  = encrypter;
 }
Beispiel #6
0
 public AuthAppService(IDomainNotificationProvider notificationProvider, IUserRepository userRepository, IEncrypterService encrypterService, IJwtHandler jwt)
 {
     _notificationProvider = notificationProvider;
     _userRepository       = userRepository;
     _encrypterService     = encrypterService;
     _jwt = jwt;
 }
 public UserService(IUserRepository userRepository, IEncrypter encrypter
                    , IJwtHandler jwtHandler)
 {
     this.userRepository = userRepository;
     this.encrypter      = encrypter;
     this.jwtHandler     = jwtHandler;
 }
Beispiel #8
0
 public UserService(CookieContext context, IDataHashManager hashManager, IJwtHandler jwtHandler, IRecipeService recipeService)
 {
     _context       = context;
     _hashManager   = hashManager;
     _jwtHandler    = jwtHandler;
     _recipeService = recipeService;
 }
 public IdentityService(IUserRepository userRepository, IPasswordHasher <User> passwordHasher, IClaimsProvider claimsProvider, IJwtHandler jwtHandler)
 {
     _passwordHasher = passwordHasher ?? throw new ArgumentNullException(nameof(passwordHasher));
     _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     _claimsProvider = claimsProvider ?? throw new ArgumentNullException(nameof(claimsProvider));
     _jwtHandler     = jwtHandler ?? throw new ArgumentNullException(nameof(jwtHandler));
 }
Beispiel #10
0
 public RefreshTokenService(IRefreshTokenRepository refreshTokenRepository, IUserRepository userRepository, IJwtHandler jwtHandler, IHasher hasher)
 {
     _refreshTokenRepository = refreshTokenRepository;
     _userRepository         = userRepository;
     _jwtHandler             = jwtHandler;
     _hasher = hasher;
 }
Beispiel #11
0
 public SignInHandler(IHandler handler, IUserService userService, IJwtHandler jwtHandler, IMemoryCache memoryCache)
 {
     _handler     = handler;
     _userService = userService;
     _jwtHandler  = jwtHandler;
     _memoryCache = memoryCache;
 }
 public AccountService(IServiceProvider serviceProvider, IJwtHandler jwtHandler,
                       IPasswordHasher <User> passwordHasher)
 {
     _serviceProvider = serviceProvider;
     _jwtHandler      = jwtHandler;
     _passwordHasher  = passwordHasher;
 }
Beispiel #13
0
 public LoginHandler(IPlayerService playerService, IJwtHandler jwtHandler,
                     IMemoryCache cache)
 {
     _playerService = playerService;
     _jwtHandler    = jwtHandler;
     _cache         = cache;
 }
 public AccountController(
     IAppCommandDispatcher appCommandDispatcher,
     IJwtHandler jwtHandler
     ) : base(appCommandDispatcher)
 {
     this.jwtHandler = jwtHandler;
 }
Beispiel #15
0
 public AuthService(IUserRepository userRepository,
                    IPatientRepository patientRepository, IJwtHandler jwtHandler)
 {
     _userRepository    = userRepository;
     _patientRepository = patientRepository;
     _jwtHandler        = jwtHandler;
 }
Beispiel #16
0
 public ServiceUser(IUserRepository userRepository, IMapper mapper, IEncrypter encrypter, IJwtHandler jwtHandler)
 {
     _userRepository = userRepository;
     _mapper         = mapper;
     _encrypter      = encrypter;
     _jwtHandler     = jwtHandler;
 }
 public LoginHandler(IUserService userService, IJwtHandler jwtHandler,
                     IMemoryCache cache)
 {
     _userService = userService;
     _jwtHandler  = jwtHandler;
     _cache       = cache;
 }
Beispiel #18
0
 public UserService(IUserRepository repository,
                    IEncrypter encrypter, IJwtHandler jwtHandler)
 {
     _repository = repository;
     _encrypter  = encrypter;
     _jwtHandler = jwtHandler;
 }
Beispiel #19
0
 public UserService(IUserRepository userRepository,
                    IMapper mapper, IJwtHandler jwtHandler)
 {
     _userRepository = userRepository;
     _mapper         = mapper;
     _jwtHandler     = jwtHandler;
 }
Beispiel #20
0
        public JwtFactory(IJwtHandler jwtHandler, IOptions <JwtIssuerOptions> options)
        {
            _jwtOptions = options.Value;
            _jwtHandler = jwtHandler;

            ThrowIfInvalidOptions(_jwtOptions);
        }
 public UserService(IUserRepository userRepository, IEncripter encripter,
                    IJwtHandler jwtHandler)
 {
     _userRepository = userRepository;
     _encripter      = encripter;
     _jwtHandler     = jwtHandler;
 }
Beispiel #22
0
 public AccountService(AppDbContext appDbContext, IJwtHandler jwtHandler, IMapper mapper, IPasswordHasher <User> passwordHasher)
 {
     _appDbContext   = appDbContext;
     _jwtHandler     = jwtHandler;
     _mapper         = mapper;
     _passwordHasher = passwordHasher;
 }
 public AccountController(IUserService userService,
                          IJwtHandler jwtHandler,
                          ICommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
     _userService = userService;
     _jwtHandler  = jwtHandler;
 }
Beispiel #24
0
 public UserService(IUserRepository userRepository,
                    IEncryptor encryptor,
                    IJwtHandler jwtHandler)
 {
     _jwtHandler     = jwtHandler;
     _encryptor      = encryptor;
     _userRepository = userRepository;
 }
Beispiel #25
0
 public Login(IUnitOfWork unit,
              IEncrypter encrypter,
              IJwtHandler jwtHandler)
 {
     this.unit        = unit;
     this._encrypter  = encrypter;
     this._jwtHandler = jwtHandler;
 }
Beispiel #26
0
 public UsersController(IUserService userService,
                        ICommandDispatcher commandDispatcher, IJwtHandler jwtHandler, IMemoryCache cache, DataContext context) : base(commandDispatcher)
 {
     _cache       = cache;
     _userService = userService;
     _jwtHandler  = jwtHandler;
     _context     = context;
 }
 public AccountService(IAccountRepository accountRepository, IEncrypter encrypter, IJwtHandler jwtHandler, IBusClient busClient, IMapper mapper)
 {
     _accountRepository = accountRepository;
     _encrypter         = encrypter;
     _jwtHandler        = jwtHandler;
     _busClient         = busClient;
     _mapper            = mapper;
 }
Beispiel #28
0
 public UserService(IUserRepo userRepo, IEncrypter encrypter, IJwtHandler jwtHandler, IMemoryCache cache, IMapper mapper)
 {
     _userRepo   = userRepo;
     _encrypter  = encrypter;
     _jwtHandler = jwtHandler;
     _cache      = cache;
     _mapper     = mapper;
 }
Beispiel #29
0
 public SocialLoginHandler(IUserRepository userRepository,
                           IMapper mapper,
                           IJwtHandler jwtHandler)
 {
     _userRepository = userRepository;
     _mapper         = mapper;
     _jwtHandler     = jwtHandler;
 }
Beispiel #30
0
 public ExerciseController(IHttpContextAccessor httpContextAccessor, IExerciseService exerciseService, IUserExerciseService userExerciseService, IUserGroupService roleService, IJwtHandler jwtHandler)
 {
     _httpContextAccessor = httpContextAccessor;
     _exerciseService     = exerciseService;
     _userExerciseService = userExerciseService;
     _roleService         = roleService;
     _jwtHandler          = jwtHandler;
 }