Class ImpersonationStateProtector

Assembly: redb.Identity.Web.dll

Reads / writes the impersonation overlay cookie. Cookie lives at most 1 hour and is
cleared either by the admin clicking "Stop" or implicitly when the BFF auth cookie expires.

public sealed class ImpersonationStateProtector

Inheritance

Object→ImpersonationStateProtector

Methods

ClearCookie(HttpContext)

public void ClearCookie(HttpContext ctx)

Protect(ImpersonationOverlay)

public string Protect(ImpersonationOverlay overlay)

ReadCookie(HttpContext)

public ImpersonationOverlay? ReadCookie(HttpContext ctx)

Unprotect(string?)

public ImpersonationOverlay? Unprotect(string? payload)

WriteCookie(HttpContext, ImpersonationOverlay)

public void WriteCookie(HttpContext ctx, ImpersonationOverlay overlay)

Constructors