Skip to content

MasqueradeAuthContext

Describes an execution in which one principal acts as another, carrying the Roles of the principal being impersonated.

Every inherited property describes the impersonated user (the puppet): Role checks use its rolePrns and published Events name its principalId. Only MasqueradeAuthContext.underlyingPrincipalId identifies the user who is present.

readonly identityId: string

The identity provider login (such as a Google or Microsoft account) the principal signed in with; kept for traceability rather than for access decisions.

PrincipalAuthContext.identityId


readonly principalId: string

The user Item the principal is acting as; Role assignments and Template Role callbacks resolve against this id.

PrincipalAuthContext.principalId


readonly rolePrns: readonly string[]

PRNs of the App Roles the principal holds in this Workspace; a Role check passes when the Role’s PRN appears here.

PrincipalAuthContext.rolePrns


readonly sessionId: string

Links this context to the sign-in session it was created from.

PrincipalAuthContext.sessionId


readonly type: "masquerade"

Discriminates this context from the other members of AlpyneAuthContext.


readonly underlyingPrincipalId: string

The user performing the impersonation (the puppet master), as distinct from the impersonated principalId.


readonly workspaceId: string

The Workspace every operation in this execution is scoped to.

PrincipalAuthContext.workspaceId