public UserService(IUserRepository userRepository, IUserFactory userFactory, IJwtConfiguration jwtConfiguration, ICorrelationContext correlationContext) { _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _userFactory = userFactory ?? throw new ArgumentNullException(nameof(userFactory)); _jwtConfiguration = jwtConfiguration ?? throw new ArgumentNullException(nameof(jwtConfiguration)); _correlationContext = correlationContext ?? throw new ArgumentNullException(nameof(correlationContext)); }
public UserHelper(IJwtConfiguration config, IUserRepository userRepository, IBookRepository bookRepository, ICategoryRepository categoryRepository, IRatingRepository ratingRepository) { _config = config; _userRepository = userRepository; _bookRepository = bookRepository; _categoryRepository = categoryRepository; _ratingRepository = ratingRepository; }
public AccountService(SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, IUnitOfWork unitOfWork, IJwtConfiguration jwtConfiguration, IMapper mapper) { _userManager = userManager; _signInManager = signInManager; _unitOfWork = unitOfWork; _jwtConfiguration = jwtConfiguration; _mapper = mapper; }
public LoginController(ILogger <LoginController> logger, IAdminTenantService adminService, ILoginService loginService, IJwtConfiguration jwtConfiguration, ITestTenantInfo testTenantInfo) { _logger = logger; _adminService = adminService; _loginService = loginService; _jwtConfiguration = jwtConfiguration; _testTenantInfo = testTenantInfo; }
public TokenGenerator(IJwtConfiguration tokenConfiguration, IKeyConfig keyConfig) { _tokenConfiguration = tokenConfiguration ?? throw new ArgumentNullException(nameof(tokenConfiguration)); _keyConfig = keyConfig ?? throw new ArgumentNullException(nameof(keyConfig)); }
public UserJWTService(IJwtConfiguration jwtConfig) { Secret = jwtConfig.Secret; }