Skip to main content

Module auth

Module auth 

Source
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§

ProviderConfig
Configuration for an identity provider.

Enums§

AuthInput
Represents the input for an authentication method.
SameSite
Controls whether a cookie is sent with cross-site requests.

Traits§

AuthMethod
A mechanism used to authenticate a user.
CredentialsProvider
Trait for a Credentials-based provider (e.g., Email/Password).
ErasedOAuthFlow
Orchestrates the Authorization Code flow.
OAuthProvider
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.
UserMapper
Trait for mapping a provider identity to a local user.