Skip to content

PrincipalAuthContext

Defined in: runtime/auth.ts:9

Context that represents an individual accessing the system.

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.


readonly principalId: string

Defined in: runtime/auth.ts:24

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


readonly rolePrns: readonly string[]

Defined in: runtime/auth.ts:29

The roles that this specific user has directly.


readonly sessionId: string

Defined in: runtime/auth.ts:34

An identifier linking this context to a session.


readonly type: "principal"

Defined in: runtime/auth.ts:10


readonly workspaceId: string

Defined in: runtime/auth.ts:39

The current workspace selected for this principal.