示例#1
0
 public LoginService(ITokenGeneratorService tokenService, IAlipayService alipayService, IAlipayUserRepository userRepo, ILogger <LoginService> logger)
 {
     _logger             = logger;
     this._tokenService  = tokenService;
     this._alipayService = alipayService;
     _userRepo           = userRepo;
 }
示例#2
0
 public AggregatorController(DataContext context, ITokenGeneratorService tokenGenerator,
                             IConnectorSenderService connetorSender)
 {
     this._context         = context;
     this._tokenGenerator  = tokenGenerator;
     this._connectorSender = connetorSender;
 }
示例#3
0
 public TokenService(IRefreshRepository refreshRepository, IUserRepository userRepository,
                     ITokenGeneratorService tokenGeneratorService)
 {
     this.refreshRepository     = refreshRepository;
     this.userRepository        = userRepository;
     this.tokenGeneratorService = tokenGeneratorService;
 }
示例#4
0
 public IdentityService(
     UserManager <User> userManager,
     ITokenGeneratorService jwtTokenGenerator)
 {
     this.userManager       = userManager;
     this.jwtTokenGenerator = jwtTokenGenerator;
 }
示例#5
0
 public IdentityService(UserManager <User> userManager
                        , ITokenGeneratorService tokenGeneratorService
                        , IBus publisher)
 {
     this.userManager           = userManager;
     this.tokenGeneratorService = tokenGeneratorService;
     this.publisher             = publisher;
 }
示例#6
0
 public OrderService(ATZBDbContext dbContext
                     , IPasswordValidatorService passwordValidator
                     , ITokenGeneratorService tokenGeneratorService)
 {
     _dbContext             = dbContext;
     _passwordValidator     = passwordValidator;
     _tokenGeneratorService = tokenGeneratorService;
 }
 public AuthorizationService(IUserRepository userRepository, IEmailService emailService, IMapper mapper,
                             ITokenGeneratorService token, IRefreshRepository refreshRepository)
 {
     this.userRepository    = userRepository;
     this.emailService      = emailService;
     this.mapper            = mapper;
     this.token             = token;
     this.refreshRepository = refreshRepository;
 }
示例#8
0
        public void Setup()
        {
            _logger        = A.Fake <ILogger <LoginService> >();
            _tokenService  = A.Fake <ITokenGeneratorService>();
            _alipayService = A.Fake <IAlipayService>();
            _userRepo      = A.Fake <IAlipayUserRepository>();

            _service = new LoginService(_tokenService, _alipayService, _userRepo, _logger);
        }
示例#9
0
 public IdentityService(
     AppIdentityDbContext ctx,
     UserManager <User> userManager,
     ITokenGeneratorService jwtTokenGenerator)
 {
     this.ctx               = ctx;
     this.userManager       = userManager;
     this.jwtTokenGenerator = jwtTokenGenerator;
 }
示例#10
0
 public IdentityService(
     UserManager <User> userManager,
     ITokenGeneratorService jwtTokenGenerator,
     ILoggedUserService user, IMapper mapper)
 {
     this.userManager       = userManager;
     this.jwtTokenGenerator = jwtTokenGenerator;
     this.user   = user;
     this.mapper = mapper;
 }
 public MemberService(IRoomRepository roomRespository, IAttemptRepository attemptRepository, IMemberRepository memberRepository, ITokenGeneratorService tokenGeneratorService, ITokenRepository tokenRepository, ICacheRepository cacheRepository, IOptions <AuthOptionsConfig> config)
 {
     _memberRepository      = memberRepository;
     _attemptRepository     = attemptRepository;
     _roomRepository        = roomRespository;
     _tokenGeneratorService = tokenGeneratorService;
     _tokenRepository       = tokenRepository;
     _cacheRepository       = cacheRepository;
     _config = config;
 }
示例#12
0
 public AuthController(AuthDbContext dbContext,
                       IOptions <AuthOptions> authOptions,
                       ITokenGeneratorService tokenGenerator,
                       IRngGeneratorService rngGenerator,
                       ILogger <AuthController> logger)
 {
     _logger         = logger;
     _rngGenerator   = rngGenerator;
     _tokenGenerator = tokenGenerator;
     _db             = dbContext;
     _authOptions    = authOptions.Value;
 }
        public AuthController(IMicrosserviceService microsserviceService,
                              IMapper mapper,
                              SignInManager <IdentityUser> signInUserManager,
                              UserManager <IdentityUser> userManager,
                              ITokenGeneratorService tokenGeneratorService)

        {
            _microsserviceService = microsserviceService;
            _mapper                = mapper;
            _signInUserManager     = signInUserManager;
            _userManager           = userManager;
            _tokenGeneratorService = tokenGeneratorService;
        }
 public AuthenticationController(UserManager <ApplicationUser> userManager,
                                 SignInManager <ApplicationUser> signInManager,
                                 IUserRepository userRepository,
                                 IUserValidatorService userValidatorService,
                                 ITokenGeneratorService tokenGeneratorService,
                                 IOptions <TokenOptions> tokens,
                                 ILogger <AuthenticationController> logger)
     : base(userManager, logger)
 {
     _signInManager         = signInManager;
     _userRepository        = userRepository;
     _tokenOptions          = tokens.Value;
     _userValidatorService  = userValidatorService;
     _tokenGeneratorService = tokenGeneratorService;
 }
 public AuthorizationController(
     IUserAuthService authService,
     IMapper mapper,
     IConfiguration config,
     ITokenGeneratorService jwtTokenGenerator,
     IOptions <JwtTokenSecretKey> secret,
     IOptions <JwtTokenOptions> options,
     DashboardDbContext context,
     IOptions <MainUserData> optionsMainUser
     )
 {
     _authService       = authService;
     _mapper            = mapper;
     _config            = config;
     _jwtTokenGenerator = jwtTokenGenerator;
     _context           = context;
     _optionsMainUser   = optionsMainUser;
     _jwtTokenSecretKey = secret.Value.jwtTokenSecretKey;
     _issuer            = options.Value.issuer;
     _audience          = options.Value.audience;
 }
示例#16
0
 public ServicesTest(IAuthService authService, IUserRepository userRepository, IFileService fileService, ITokenGeneratorService tokenService)
 {
     _authService           = authService;
     _fileService           = fileService;
     _userRepository        = userRepository;
     _tokenGeneratorService = tokenService;
     _Goodinfo = new AuthInfo {
         Username = "******", Password = "******"
     };
     _UsernameTakenRegister = new AuthInfo {
         Username = "******", Password = "******"
     };
     _BadUsernameLogin = new AuthInfo {
         Username = "******", Password = "******"
     };
     _BadPasswordRegister = new AuthInfo {
         Username = "******", Password = "******"
     };
     _BadPasswordLogin = new AuthInfo {
         Username = "******", Password = "******"
     };
 }
示例#17
0
 public TokenController(ITokenGeneratorService tokenGeneratorService, IClaimsService claimsService)
 {
     _tokenGeneratorService = tokenGeneratorService;
     _claimsService         = claimsService;
 }
示例#18
0
 public AccountController(IDataContext context, ITokenGeneratorService tokenGeneratorService)
 {
     this.context = context;
     this.tokenGeneratorService = tokenGeneratorService;
 }
示例#19
0
 public IdentityService(UserManager <User> userManager, ITokenGeneratorService tokenGeneratorService)
 {
     this.userManager           = userManager;
     this.tokenGeneratorService = tokenGeneratorService;
 }
示例#20
0
 public AuthenticateCommandHandler(IOptionsMonitor <AppSettings> appSettings, ITokenGeneratorService tokenGeneratorService)
 {
     _appSettings           = appSettings.CurrentValue;
     _tokenGeneratorService = tokenGeneratorService;
 }
示例#21
0
 public TestController(ITokenGeneratorService tokenService)
 {
     this._tokenService = tokenService;
 }
示例#22
0
 public MicrosserviceController(IMicrosserviceService service, IMapper mapper, ITokenGeneratorService tokenGeneratorService)
 {
     _service = service;
     _mapper  = mapper;
     _tokenGeneratorService = tokenGeneratorService;
 }
示例#23
0
 public UserService(IUserRepository userRespository, ITokenGeneratorService tokenGeneratorService)
 {
     _userRepository        = userRespository;
     _tokenGeneratorService = tokenGeneratorService;
 }
示例#24
0
 public IdentityService(NiceOneIdentityDbContext dbContext, UserManager <User> userManager, ITokenGeneratorService jwtTokenGenerator)
     : base(dbContext)
 {
     this.userManager       = userManager;
     this.jwtTokenGenerator = jwtTokenGenerator;
 }
 public AuthController(IAdminService userService, ITokenGeneratorService tokenGeneratorService)
 {
     _userService           = userService;
     _tokenGeneratorService = tokenGeneratorService;
 }
示例#26
0
 public AuthService(IUserRepository repo, ITokenGeneratorService tokenServ)
 {
     _userRepository = repo;
     _tokenService   = tokenServ;
 }
示例#27
0
 public LoginController(IUserRepository userRepository, IHashService hashService, ITokenGeneratorService tokenGeneratorService)
 {
     _userRepository        = userRepository;
     _hashService           = hashService;
     _tokenGeneratorService = tokenGeneratorService;
 }