Class ConsentChallengeStateProtector

Assembly: redb.Identity.Web.dll

Persists in a signed cookie via DataProtection.
Cookie is HttpOnly, Secure (when over https), SameSite=Lax so it survives the
top-level navigation to the BFF /consent page, and lives for at most 10 minutes —
past that the user must restart sign-in.

public sealed class ConsentChallengeStateProtector

Inheritance

Object→ConsentChallengeStateProtector

Methods

ClearCookie(HttpContext)

public void ClearCookie(HttpContext ctx)

Protect(ConsentInFlightState)

public string Protect(ConsentInFlightState state)

ReadCookie(HttpContext)

public ConsentInFlightState? ReadCookie(HttpContext ctx)

Unprotect(string?)

public ConsentInFlightState? Unprotect(string? payload)

WriteCookie(HttpContext, ConsentInFlightState)

public void WriteCookie(HttpContext ctx, ConsentInFlightState state)

Constructors