Expand description
§Engine Core
authkestra-core provides the foundational traits and types for the Engine authentication framework.
It defines the core abstractions for identities, authentication flows and providers that are used across the entire ecosystem.
Re-exports§
pub use error::AuthError;pub use state::AuthResult;pub use state::Identity;pub use state::OAuth2State;pub use state::OAuthToken;pub use session::Session;pub use session::SessionConfig;pub use session::SessionStore;
Modules§
- discovery
- Discovery utilities for OAuth2 providers.
- error
- Errors that can occur during the authentication process.
- pkce
- PKCE (Proof Key for Code Exchange) utilities.
- session
- Session management traits and types.
- state
- A unified identity structure returned by all providers.
- strategy
- Strategy-based authentication.
Structs§
- Provider
Config - Configuration for an identity provider.
Enums§
- Auth
Input - Represents the input for an authentication method.
- Same
Site - Controls whether a cookie is sent with cross-site requests.
Traits§
- Auth
Method - A mechanism used to authenticate a user.
- Credentials
Provider - Trait for a Credentials-based provider (e.g., Email/Password).
- ErasedO
Auth Flow - Orchestrates the Authorization Code flow.
- OAuth
Provider - Trait for an OAuth2-compatible provider.
- Provider
- An external identity source (e.g., Google, GitHub). Providers should contain zero business logic—only configuration and mapping.
- User
Mapper - Trait for mapping a provider identity to a local user.