public UserService(IRefreshTokenRepository refreshTokenRepository, IUserRepository userRepository, IOptions <JwtOptions> jwtOptions, TokenValidationParameters tokenValidationParameters, IPwnedPasswordsClient pwnedPasswordsClient, IMapper mapper, ISendGridService mailService) { _refreshTokenRepository = refreshTokenRepository; _userRepository = userRepository; _jwtOptions = jwtOptions.Value; _tokenValidationParameters = tokenValidationParameters.Clone(); _pwnedPasswordsClient = pwnedPasswordsClient; _mapper = mapper; _mailService = mailService; _tokenValidationParameters.ValidateLifetime = false; }
public Application(IPwnedPasswordsClient client) { _client = client; }
/// <summary> /// Create a new instance of the <see cref="PwnedPasswordValidator{TUser}"/> /// </summary> public PwnedPasswordValidator(IPwnedPasswordsClient client, PwnedPasswordErrorDescriber describer) { _client = client ?? throw new ArgumentNullException(nameof(client)); Describer = describer ?? throw new ArgumentNullException(nameof(describer)); }
public PwnedPasswordStrengthValidator(IPwnedPasswordsClient pwned) { this._pwned = Guard.Null(nameof(pwned), pwned); }
/// <summary> /// Create a new instance of the <see cref="PwnedPasswordValidator{TUser}"/> /// </summary> public PwnedPasswordValidator(IPwnedPasswordsClient client, IOptions <PwnedPasswordValidatorOptions> options) { _client = client ?? throw new ArgumentNullException(nameof(client)); _options = options.Value; }