Expand description
Auth provider traits, dispatch, and built-in provider commands. Auth provider abstraction and built-in auth helpers.
Consumer CLIs normally register one or more AuthProvider implementations
with crate::CliConfig. Middleware then resolves credentials before
business logic runs and passes a Credential to command handlers.
The module also contains an crate::auth::exec::ExecProvider for provider
binaries that speak the JSON stdin/stdout contract.
Re-exports§
pub use commands::AuthLoginResult;pub use commands::AuthStatusEntry;pub use commands::auth_command_group;pub use commands::login_and_build;pub use commands::logout_result;pub use commands::status_result;pub use commands::to_status_entry;pub use exec::ACTION_AUTHENTICATE;pub use exec::ACTION_LIST_ENVIRONMENTS;pub use exec::ACTION_LIST_REALMS;pub use exec::ACTION_LOGOUT;pub use exec::ACTION_STATUS;pub use exec::AuthnRequest;pub use exec::EnvironmentsResponse;pub use exec::ExecProvider;
Modules§
- commands
- Built-in
auth login,auth status, andauth logoutcommand helpers. - exec
- External process auth provider implementation.
Structs§
- Credential
- Credential returned by an auth provider.
- Dispatcher
- Routes auth operations to registered providers by name.
- Single
Provider - Single-provider facade over a shared
Dispatcher. - Status
Entry - Status row produced while querying all providers.
Constants§
- CACHE_
TTL - Cache TTL used when a credential has
cached_at.
Traits§
- Auth
Provider - Named auth provider used by middleware and transport injectors.