Esempio n. 1
0
 public AuthService(
     IUserRepository userRepository, IActionLogService actionLogService, IJwtAuth jwt
     )
 {
     _actionLogService = actionLogService;
     _userRepository   = userRepository;
     _jwt = jwt;
 }
Esempio n. 2
0
 public AuthController(
     IUsersDomain usersDomain,
     IJwtAuth jwtAuth,
     ILogger <AuthController> logger
     )
 {
     _usersDomain = usersDomain;
     _jwtAuth     = jwtAuth;
     _logger      = logger;
 }
Esempio n. 3
0
 public SessionController(ILogger <SessionController> logger,
                          IUserRepository userRepository,
                          IJwtAuth jwtAuth,
                          IPasswordProvider passwordProvider,
                          IOAuth oauth)
 {
     _logger           = logger;
     _userRepository   = userRepository;
     _jwtAuth          = jwtAuth;
     _passwordProvider = passwordProvider;
     _oauth            = oauth;
 }
Esempio n. 4
0
 public OAuth(IJwtAuth jwtAuth,
              ICacheManager cacheManager,
              ILogger <OAuth> logger,
              IOptions <OAuthConfig> optionsOauth,
              IUserRepository userRepository)
 {
     _jwtAuth        = jwtAuth;
     _cacheManager   = cacheManager;
     _logger         = logger;
     _userRepository = userRepository;
     _oauthConfig    = optionsOauth.Value;
 }
Esempio n. 5
0
 public AuthController(ILoggerFactory logger, IUserRepository userRepository, IJwtAuth jwt)
 {
     Logger         = logger.CreateLogger(GetType()) ?? throw new ArgumentNullException(nameof(Logger));
     UserRepository = userRepository ?? throw new ArgumentNullException(nameof(UserRepository));
     Jwt            = jwt ?? throw new ArgumentNullException(nameof(Jwt));
 }
Esempio n. 6
0
 public Account(IRespository.IRepository <User> context, IJwtAuth auth)
 {
     _context = context;
     _auth    = auth;
 }
Esempio n. 7
0
 public CustomersController(IAbpHplDbContext abpHplDb, IJwtAuth jwtAuth)
 {
     _abpHplDb = abpHplDb;
     _jwtAuth  = jwtAuth;
 }