MasqueradeAuthContext
Describes an execution in which one principal acts as another, carrying the Roles of the principal being impersonated.
Remarks
Section titled “Remarks”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.
Extends
Section titled “Extends”Omit<PrincipalAuthContext,"type">
Properties
Section titled “Properties”identityId
Section titled “identityId”
readonlyidentityId: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.
Inherited from
Section titled “Inherited from”PrincipalAuthContext.identityId
principalId
Section titled “principalId”
readonlyprincipalId:string
The user Item the principal is acting as; Role assignments and Template Role callbacks resolve against this id.
Inherited from
Section titled “Inherited from”PrincipalAuthContext.principalId
rolePrns
Section titled “rolePrns”
readonlyrolePrns: readonlystring[]
PRNs of the App Roles the principal holds in this Workspace; a Role check passes when the Role’s PRN appears here.
Inherited from
Section titled “Inherited from”sessionId
Section titled “sessionId”
readonlysessionId:string
Links this context to the sign-in session it was created from.
Inherited from
Section titled “Inherited from”PrincipalAuthContext.sessionId
readonlytype:"masquerade"
Discriminates this context from the other members of AlpyneAuthContext.
underlyingPrincipalId
Section titled “underlyingPrincipalId”
readonlyunderlyingPrincipalId:string
The user performing the impersonation (the puppet master), as distinct from the
impersonated principalId.
workspaceId
Section titled “workspaceId”
readonlyworkspaceId:string
The Workspace every operation in this execution is scoped to.

