Interface IPasswordPolicyValidator
H10 — central server-side gate for every password mutation (admin Create/Change,
self-service /me/password, SCIM Create/PATCH). Validates length + composition rules
from , history reuse (Phase 2) and
breach checking (Phase 5). Always invoked BEFORE
IUserProvider.SetPasswordAsync/ChangePasswordAsync.
public interface IPasswordPolicyValidator
Methods
ValidateAsync(string?, long?, CancellationToken)
Validates the candidate password against all configured rules.
ValueTask<PasswordValidationResult> ValidateAsync(string? password, long? userId = null, CancellationToken ct = default)
ValidateAsync(string?, long?, IRedbService, CancellationToken)
The same validation with the database reads (the history lookup) through redb: what a
ValueTask<PasswordValidationResult> ValidateAsync(string? password, long? userId, IRedbService redb, CancellationToken ct = default)