Interface IPasswordHistoryStore

Assembly: redb.Identity.Core.dll

Phase 2 — pluggable per-user password-history store. Implemented in a follow-up
phase; declared here so can take an
optional dependency without a circular reference.

public interface IPasswordHistoryStore

Methods

IsRecentlyUsedAsync(IRedbService, long, string, int, CancellationToken)

The same check through the caller's redb: what a processor on a transacted route

Task<bool> IsRecentlyUsedAsync(IRedbService redb, long userId, string password, int count, CancellationToken ct)

IsRecentlyUsedAsync(long, string, int, CancellationToken)

Returns true if password matches any of the

Task<bool> IsRecentlyUsedAsync(long userId, string password, int count, CancellationToken ct)

RecordAsync(long, string, int, CancellationToken)

Records a new password hash for the user and trims older entries beyond

Task RecordAsync(long userId, string password, int keep, CancellationToken ct)