public RegistrationController(IJwtHandlerService jwtHandler, IConfigProvider configProvider, ISocialAuth socialAuth, ITokenCleaner cleaner, ISmtpClient smtpClient)
 {
     userRepository  = new UserRepository(jwtHandler, configProvider);
     this.smtpClient = smtpClient;
     this.cleaner    = cleaner;
     this.socialAuth = socialAuth;
 }
Example #2
0
        public AuthController(IJwtHandlerService jwtService, ISocialAuth socialAuth, IConfigProvider configProvider)
        {
            userRepository = new UserRepository(jwtService, configProvider);

            this.configProvider = configProvider;
            this.socialAuth     = socialAuth;
        }
Example #3
0
        public UserRepository(IJwtHandlerService jwtService, IConfigProvider configProvider)
        {
            userDAO   = new UserDAO(configProvider);
            verifyDAO = new VerificationDAO(configProvider);
            mapper    = new ModelsMapper();

            this.jwtService = jwtService;
        }
Example #4
0
 public LoginService(IUserRepository userRepository, IEncrypter encrypter,
                     IJwtHandlerService jwtHandlerService, IMemoryCache cache)
 {
     this.userRepository    = userRepository;
     this.encrypter         = encrypter;
     this.jwtHandlerService = jwtHandlerService;
     this.cache             = cache;
 }
Example #5
0
 public AccountRepository(
     KMSDBContext context,
     IJwtHandlerService jwtHandler,
     IPasswordHasher <Users> passwordHasher)
 {
     this._jwtHandler     = jwtHandler;
     this._db             = context;
     this._passwordHasher = passwordHasher;
 }
 public UserController(IJwtHandlerService jwtService, IConfigProvider configProvider)
 {
     userRepository = new UserRepository(jwtService, configProvider);
 }
 public AccessControlController(IConfiguration config, IJwtHandlerService jwtHandlerService, IUserService userService)
 {
     this._config            = config;
     this._jwtHandlerService = jwtHandlerService;
     this._userService       = userService;
 }
 public CommonMessageController(IHubContext <ChatHub, ITypedHubClient> hubContext, IConfigProvider configProvider, IJwtHandlerService jwtService, ICommonChatRepository commonChatRepository)
 {
     _hubContext               = hubContext;
     userRepository            = new UserRepository(jwtService, configProvider);
     this.commonChatRepository = commonChatRepository;
 }
Example #9
0
 public ConfirmationController(IJwtHandlerService jwtHandler, IConfigProvider configProvider, ISmtpClient smtpClient)
 {
     userRepository      = new UserRepository(jwtHandler, configProvider);
     this.configProvider = configProvider;
 }
 public UsersConnectionService(IJwtHandlerService jwtService, IConfigProvider configProvider)
 {
     userRepository = new UserRepository(jwtService, configProvider);
 }
 public ConfirmationEmailController(IJwtHandlerService jwtHandler, IConfigProvider configProvider)
 {
     userRepository = new UserRepository(jwtHandler, configProvider);
 }