Expand description
Authentication primitives — relocated to plexus-auth-core.
Per AUTHZ-CORE-CRATE-1, the canonical home for the Plexus auth sealed
types is now the plexus-auth-core crate. plexus-core re-exports them
here so existing call sites keep compiling during the deprecation
window. New code should import directly from plexus_auth_core.
See plans/AUTHZ/AUTHZ-CORE-CRATE-1.md and AUTHZ-0 for rationale.
Structs§
- Anonymous
- Anonymous: drop the entire
AuthContext. - Auth
Context - Per-connection authentication context, populated during WS upgrade.
- Call
Site - Identifies a single edge in the call graph at the moment a policy runs.
- Forward
Derivation - What a policy returns: a derivation request, NOT a constructed context.
- Forward
Policy Name - Stable identifier for a forwarding policy, surfaced into audit records and diagnostics.
- Identity
Only - Identity-only: forwards the caller’s IdP-verified user identity and drops roles, capabilities, and metadata.
- Method
Path - A dotted method path like
auth.loginorcone.send_message. - Pass
Through - Pass-through: forward every field of the caller’s context.
- Service
Identity - Service-identity claim, paired with
Principal::Serviceto identify a non-user authenticated actor (e.g., another Plexus deployment). - Verified
User - Sealed proof that an IdP-signed token was verified.
Enums§
- Method
Path Error - Why a
MethodPath::try_newrejected its input. - Principal
- An authenticated actor: a user, a service, or anonymous.
Constants§
- ANONYMOUS_
NAME - The
anonymouspolicy name (stable string surfaced in audit). - IDENTITY_
ONLY_ NAME - The
identity_onlypolicy name (stable string surfaced in audit). - PASS_
THROUGH_ NAME - The
pass_throughpolicy name (stable string surfaced in audit).
Traits§
- Forward
Policy - The forwarding-policy trait.
- Session
Validator - Backends implement this trait to validate cookies/tokens during WS upgrade.