Skip to main content

Module auth

Module auth 

Source
Expand description

AuthContext and SessionValidator — relocated from plexus-core.

Per AUTHZ-CORE-CRATE-1, the public type surface (fields, methods, constructors) is preserved verbatim from plexus-core’s previous home at plexus_core::plexus::auth. The migration is mechanical; behavior is unchanged. plexus-core re-exports these from here with a #[deprecated] pointer at the new path so existing callers compile during the deprecation window.

Future work tightens the seal on AuthContext::new and the field visibility (per AUTHZ-0 §“Crate-level isolation amplifies the seal”). That tightening is intentionally NOT in this ticket because it would break ~30 direct construction sites across plexus-trak, plexus-transport tests, and others — a workspace-wide blast radius outside this ticket’s scope. See plans/AUTHZ/AUTHZ-CORE-CRATE-1-RUN-NOTES.md.

Structs§

AuthContext
Per-connection authentication context, populated during WS upgrade.

Traits§

SessionValidator
Backends implement this trait to validate cookies/tokens during WS upgrade.