Skip to content

MasqueradeAuthContext

Defined in: runtime/auth.ts:47

Used when another party is masquerading in for a principal. The overall construction is the principal that is being masqueraded (aka the puppet).

readonly identityId: string

Defined in: runtime/auth.ts:18

The specific identity (such as Google or Microsoft) that was used for this individual to get access to the system. This is provided for completeness and traceability - it’s unlikely to be useful for any specific identity-based permissions or access.

PrincipalAuthContext.identityId


readonly principalId: string

Defined in: runtime/auth.ts:24

The id representing the individual themselves: Specifically the user or similar record.

PrincipalAuthContext.principalId


readonly rolePrns: readonly string[]

Defined in: runtime/auth.ts:29

The roles that this specific user has directly.

PrincipalAuthContext.rolePrns


readonly sessionId: string

Defined in: runtime/auth.ts:34

An identifier linking this context to a session.

PrincipalAuthContext.sessionId


readonly type: "masquerade"

Defined in: runtime/auth.ts:48


readonly underlyingPrincipalId: string

Defined in: runtime/auth.ts:54

The identity of the user that is performing the masquerade (aka the puppet master, not the puppet)


readonly workspaceId: string

Defined in: runtime/auth.ts:39

The current workspace selected for this principal.

PrincipalAuthContext.workspaceId