PrincipalAuthContext
Defined in: runtime/auth.ts:9
Context that represents an individual accessing the system.
Properties
Section titled “Properties”identityId
Section titled “identityId”
readonlyidentityId: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.
principalId
Section titled “principalId”
readonlyprincipalId:string
Defined in: runtime/auth.ts:24
The id representing the individual themselves: Specifically the user or similar record.
rolePrns
Section titled “rolePrns”
readonlyrolePrns: readonlystring[]
Defined in: runtime/auth.ts:29
The roles that this specific user has directly.
sessionId
Section titled “sessionId”
readonlysessionId:string
Defined in: runtime/auth.ts:34
An identifier linking this context to a session.
readonlytype:"principal"
Defined in: runtime/auth.ts:10
workspaceId
Section titled “workspaceId”
readonlyworkspaceId:string
Defined in: runtime/auth.ts:39
The current workspace selected for this principal.