Class MfaChallengeStateProtector

Assembly: redb.Identity.Web.dll

Persists in a signed cookie via DataProtection.
Cookie is HttpOnly, Secure, SameSite=Lax (must survive top-level navigation back to BFF),
and lives for at most 10 minutes — beyond that the user must restart sign-in.

public sealed class MfaChallengeStateProtector

Inheritance

Object→MfaChallengeStateProtector

Methods

ClearCookie(HttpContext)

public void ClearCookie(HttpContext ctx)

Protect(MfaInFlightState)

public string Protect(MfaInFlightState state)

ReadCookie(HttpContext)

public MfaInFlightState? ReadCookie(HttpContext ctx)

Unprotect(string?)

public MfaInFlightState? Unprotect(string? payload)

WriteCookie(HttpContext, MfaInFlightState)

public void WriteCookie(HttpContext ctx, MfaInFlightState state)

Constructors