Class PropsPasswordHistoryStore

Assembly: redb.Identity.Core.dll

H10 Phase 2 — PROPS-backed that mirrors the
PropsWebAuthnChallengeStore pattern: registered as a singleton, opens a fresh
DI scope per call so the captured is never captive across
requests. Verifier-hashes are produced via the registered
(Argon2id by default; same hasher used for live
credentials so a future algorithm bump is automatically picked up).

public sealed class PropsPasswordHistoryStore : IPasswordHistoryStore

Inheritance

Object→PropsPasswordHistoryStore

Implements

Methods

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

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

public 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

public 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

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

Constructors