Module principal
Expand description
The authenticated subject — the single Principal every gateway/RPC/ACP
connection carries once an crate auth provider has verified a credential.
Structs§
- Agent
Alias - An agent alias a principal may bind at session start. Newtype so it never gets
confused with an arbitrary
Stringin grant checks. - Principal
- Principal
Id - Stable, opaque subject id. The audit
Actor, the approval-routing key, the provenance origin, and (A2A) the peer join key. For an OIDC user this equals the IdPsub; for the shared-bearer / trusted-local path it is the sentinelPrincipalId::SHARED_OPERATOR.
Enums§
- Auth
Method - Auth
Outcome - The single result every auth surface returns. Misroute/timeout/malformed ⇒
AuthOutcome::Denied, NEVER a silent allow. - Deny
Reason - Why a credential was rejected. Fail-closed: any ambiguity ⇒ a
Deniedvariant, never a silent allow.