Esempio n. 1
0
 public SignInCommand(
     IUserRepository userRepository,
     IJwtTokenService tokenService,
     IPasswordEncoder passwordEncoder
     )
 {
     UserRepository  = userRepository;
     TokenService    = tokenService;
     PasswordEncoder = passwordEncoder;
 }
Esempio n. 2
0
 public AccountService(
     IJwtServiceProvider jwtServiceProvider,
     IRoleService roleService,
     IUserService userService,
     IPasswordEncoder passwordEncoder)
 {
     _jwtServiceProvider = jwtServiceProvider;
     _roleService        = roleService;
     _userService        = userService;
     _passwordEncoder    = passwordEncoder;
 }
Esempio n. 3
0
 public RegistrationService(
     IPasswordEncoder passwordEncoder,
     IUniqueAccountsRepository uniqueAccountsRepository,
     IClientRepository clientRepository,
     IEventStore eventStore,
     IEmailSender emailSender,
     ISellerRepository sellerRepository)
 {
     _passwordEncoder          = passwordEncoder;
     _uniqueAccountsRepository = uniqueAccountsRepository;
     _clientRepository         = clientRepository;
     _eventStore       = eventStore;
     _emailSender      = emailSender;
     _sellerRepository = sellerRepository;
 }
        public RegisterExistingUserPreCommand(IRegistrationUserValidatorResolver validatorResolver, IPasswordEncoder passwordEncoder, IProvideUserConfiguration configuration, IExternalUserService externalUserService)
        {
            if (validatorResolver == null)
                throw new ArgumentNullException("validatorResolver");

            if (passwordEncoder == null)
                throw new ArgumentNullException("passwordEncoder");

            if (configuration == null)
                throw new ArgumentNullException("configuration");

            this.passwordEncoder = passwordEncoder;
            this.validatorResolver = validatorResolver;
            this.configuration = configuration;
            this.externalUserService = externalUserService;
        }
        public ResetPasswordConfirmPreCommand(IProvideUserConfiguration configuration, IPasswordEncoder passwordEncoder, IPasswordManagementUserValidatorResolver validatorResolver, IPasswordManagementUserService service)
        {
            if (configuration == null)
                throw new ArgumentNullException("configuration");

            if (passwordEncoder == null)
                throw new ArgumentNullException("passwordEncoder");

            if (validatorResolver == null)
                throw new ArgumentNullException("validatorResolver");

            if (service == null)
                throw new ArgumentNullException("service");

            this.configuration = configuration;
            this.passwordEncoder = passwordEncoder;
            this.validatorResolver = validatorResolver;
            this.service = service;
        }
        public LoginUserCommand(ILoginUserValidatorResolver validatorResolver, ILoginUserService service, IProvideUserConfiguration userConfiguration, IPasswordEncoder passwordEncoder)
        {
            if (service == null)
                throw new ArgumentNullException("service");

            if (validatorResolver == null)
                throw new ArgumentNullException("validatorResolver");

            if (userConfiguration == null)
                throw new ArgumentNullException("userConfiguration");

            if (passwordEncoder == null)
                throw new ArgumentNullException("passwordEncoder");

            this.validatorResolver = validatorResolver;
            this.service = service;
            this.userConfiguration = userConfiguration;
            this.passwordEncoder = passwordEncoder;
        }
 public AuthorizationService(IRepository <Admin> adminRepository, IPasswordEncoder passwordEncoder, IJwtManager jwtManager)
 {
     _adminRepository = adminRepository;
     _passwordEncoder = passwordEncoder;
     _jwtManager      = jwtManager;
 }
Esempio n. 8
0
 public SignUpCommand(IUserRepository userRepository, IPasswordEncoder passwordEncoder, IJwtTokenService tokenService)
 {
     UserRepository  = userRepository;
     PasswordEncoder = passwordEncoder;
     TokenService    = tokenService;
 }
Esempio n. 9
0
 public UsersDataService(Func <UsersContext> contextLocator, IPasswordEncoder passwordEncoder)
 {
     this.contextLocator  = contextLocator;
     this.passwordEncoder = passwordEncoder;
 }
 public PasswordChecker(IPasswordEncoder passwordEncoder)
 {
     _passwordEncoder = passwordEncoder;
 }
Esempio n. 11
0
 public PasswordHasher(IPasswordEncoder passwordEncoder)
 {
     PasswordEncoder = passwordEncoder;
 }
Esempio n. 12
0
 public UserController()
 {
     _passwordEncoder = new BCryptPasswordEncoder();
 }
Esempio n. 13
0
 public UserController(IDocumentIdRetriever documentIdRetriever, IPasswordEncoder passwordEncoder)
 {
     _documentIdRetriever = documentIdRetriever;
     _passwordEncoder = passwordEncoder;
 }
Esempio n. 14
0
 public PasswordChecker(IPasswordEncoder passwordEncoder)
 {
     _passwordEncoder = passwordEncoder;
 }
Esempio n. 15
0
 public UserService(UserDAO userDao, RefreshTokenDAO refreshTokenDao, IPasswordEncoder passwordEncoder)
 {
     _userDao         = userDao;
     _refreshTokenDao = refreshTokenDao;
     _passwordEncoder = passwordEncoder;
 }
Esempio n. 16
0
 public UpdatePasswordCommand(IUserRepository userRepository, IPasswordEncoder passwordEncoder)
 {
     UserRepository  = userRepository;
     PasswordEncoder = passwordEncoder;
 }