public static User Create( IUserValidator userValidator, IUserPasswordService userPasswordService, string email, string displayName, string plainPassword, string postalCode, int timeZoneId) { AsyncHelper.RunSync(() => userValidator.ValidateAsync(null, email, displayName, plainPassword, postalCode)); byte[] passwordHash; byte[] passwordSalt; userPasswordService.CreateHash(plainPassword, out passwordHash, out passwordSalt); var user = new User { Id = Guid.NewGuid(), Email = email, DisplayName = displayName, PasswordHash = passwordHash, PasswordSalt = passwordSalt, PostalCode = postalCode, UserTimeZoneId = timeZoneId }; return(user); }
public UserController( IUserService userService, IUserPasswordService userPasswordService) { _userService = userService; _userPasswordService = userPasswordService; }
public UserAuthenticationService( IOptionsSnapshot <AuthenticationConfiguration> authenticationConfiguration, IUserPasswordService userPasswordService ) { _authenticationConfiguration = authenticationConfiguration.Value; _userPasswordService = userPasswordService; }
public Handler( IMapper mapper, IUserPasswordService passwordService, IUserRepository repository ) { _mapper = mapper; _passwordService = passwordService; _repository = repository; }
public UserService( IMapper mapper, IUserPasswordService userPasswordService, IUserRepository userRepository ) { _mapper = mapper; _userPasswordService = userPasswordService; _userRepository = userRepository; }
public ResetPasswordCommandHandler(ILogger <ResetPasswordCommandHandler> logger, IAdminUnitOfWork adminUnitOfWork, IUserRepository userRepository, IUserTokenRepository userTokenRepository, ResetPasswordCommandValidator validator, IUserPasswordService userPasswordService) { this._logger = logger; this._adminUnitOfWork = adminUnitOfWork; this._userRepository = userRepository; this._userTokenRepository = userTokenRepository; this._validator = validator; this._userPasswordService = userPasswordService; this._validationResult = new ValidationResult(); }
public UserService( IMapper mapper, IUserValidator userValidator, IUserRepository userRepository, IUserPasswordService userPasswordService) { _mapper = mapper; _userValidator = userValidator; _userRepository = userRepository; _userPasswordService = userPasswordService; }
public void InitializeTest() { m_unitOfWork = new MemoryUnitOfWork(); m_userService = MockRepository.GenerateMock<IUserService>(); var historyId = 0; m_historyRepository = new MemoryRepository<UserPasswordHistory>(m_unitOfWork, (o) => ++historyId); m_userPasswordService = new UserPasswordService(null, m_historyRepository, m_userService); m_target = new PasswordMustBeStrongSpec(1, m_userPasswordService); }
public UserAuthenticationService( IOptionsSnapshot <SecretsConfiguration> secretsConfiguration, IMapper mapper, IUserPasswordService userPasswordService, IUserService userService ) { _secretsConfiguration = secretsConfiguration.Value; _mapper = mapper; _userPasswordService = userPasswordService; _userService = userService; }
public LoginRequestCommandHandler( ILogger <LoginRequestCommandHandler> logger, IAdminUnitOfWork unitOfWork, IOptions <JwtOptions> jwtOptions, LoginRequestCommandValidator validator, IUserRepository userRepository, IUserPasswordService userPasswordService, IRefreshTokenService refreshTokenService) : base(jwtOptions) { this._logger = logger; this._unitOfWork = unitOfWork; this._validator = validator; this._userRepository = userRepository; this._userPasswordService = userPasswordService; this._refreshTokenService = refreshTokenService; }
public IdentityService(IUserService userService, IJwtHandler jwtHandler, IOptions <IdentitySettings> options, IHttpContextAccessor httpContextAccessor, IUserPasswordService userPasswordService, IIdentityIntegrationEventService identityIntegrationService, ILogger <IdentityService> logger) { _userService = userService; _userPasswordService = userPasswordService; _jwtHandler = jwtHandler; _identitySettings = options.Value; _httpContextAccessor = httpContextAccessor; _identityIntegrationService = identityIntegrationService; _logger = logger; }
public UserService( ILogger <UserService> logger, IUserRepository userRepository, IUserPasswordRepository userPasswordRepository, MangoJwtTokenHandler mangoJwtTokenHandler, IUserPasswordService userPasswordService, IHttpContextAccessor httpContextAccessor, IUserAboutRepository userAboutRepository, IEfContextWork work, IUserExternalLoginRepository userExternalLoginRepository) { _logger = logger; _userRepository = userRepository; _userPasswordRepository = userPasswordRepository; _mangoJwtTokenHandler = mangoJwtTokenHandler; _userPasswordService = userPasswordService; _userAboutRepository = userAboutRepository; _httpContextAccessor = httpContextAccessor; _work = work; _userExternalLoginRepository = userExternalLoginRepository; }
public ChangeUserPasswordCommandHandler(IUserPasswordService userPasswordService) { _userPasswordService = userPasswordService; }
public ForgetUserPasswordCommandHandler(IUserPasswordService userPasswordService) { _userPasswordService = userPasswordService; }
public Handler(IUserPasswordService <ApplicationUser, string> userPasswordService) { _userPasswordService = userPasswordService; }
public HasUserPasswordQueryHandler(IUserPasswordService userPasswordService) { _userPasswordService = userPasswordService; }
public UserPasswordController(ILogger logger, IUserPasswordService userPasswordService) { _logger = logger; _userPasswordService = userPasswordService; }
public Handler(IIdentityStorage <ApplicationUser, string> userStorage, IUserPasswordService <ApplicationUser, string> userPasswordService) { _userStorage = userStorage; _userPasswordService = userPasswordService; }