PrincipalAuthContext
Describes an execution performed by a signed-in individual whose own Roles are checked against every Grant.
Remarks
Section titled “Remarks”Role checks such as ReadAppRoleInstance.checkRole and the Grants on Queries and Mutations are evaluated against PrincipalAuthContext.rolePrns. Events published during the execution name PrincipalAuthContext.principalId as their originating principal.
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.
principalId
Section titled “principalId”
readonlyprincipalId:string
The user Item the principal is acting as; Role assignments and Template Role callbacks resolve against this id.
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.
sessionId
Section titled “sessionId”
readonlysessionId:string
Links this context to the sign-in session it was created from.
readonlytype:"principal"
Discriminates this context from the other members of AlpyneAuthContext.
workspaceId
Section titled “workspaceId”
readonlyworkspaceId:string
The Workspace every operation in this execution is scoped to.

