orxtra v0.13.0 /protocols.src.orxtra.protocols._types._identity
On this page

Defines Principal, the durable identity row shared by every actor (run, consumer, source, system), the built-in kind constants in BUILTIN_KINDS, and the system principal's sentinel external_ref.

#protocols.src.orxtra.protocols._types._identity

#protocols.src.orxtra.protocols._types._identity

#Principal

A durable identity row; one per actor in the system.

Every actor -- a run, an API consumer, a webhook source, the system itself, or an app-registered kind (e.g. users) -- gets exactly one principals row. Other tables FK to it for attribution and ownership.

This is NOT the per-request authentication context (that is AuthContext, which is ephemeral and never persisted). A Principal is the stable, persisted identity that an AuthContext may resolve to across many requests.

Search