Class ImpersonationEndpoints

Assembly: redb.Identity.Web.dll

N7-3 — BFF endpoints for admin impersonation overlay.

Flow: admin (with the identity.impersonate policy) calls
POST /api/auth/impersonate/start/{userId}. The BFF forwards to the Identity API
(writing an audit event), then drops a signed cookie holding the impersonation target.
The cookie is read on every page render to drive the banner and to scope admin pages
to the target user.


Stopping the overlay reverses the cookie and writes a corresponding audit event.

public static class ImpersonationEndpoints

Inheritance

Object→ImpersonationEndpoints

Methods

MapImpersonationEndpoints(IEndpointRouteBuilder)

public static void MapImpersonationEndpoints(this IEndpointRouteBuilder app)