Expand description
§Authkestra Core
authkestra-core provides the foundational traits and types for the Authkestra authentication framework.
It defines the core abstractions for identities, sessions, and providers that are used across the entire ecosystem.
§Key Components
Identity: A unified structure representing a user’s identity across different providers.SessionStore: A trait for implementing session persistence (e.g., in-memory, Redis, SQL).OAuthProvider: A trait for implementing OAuth2 and OpenID Connect providers.AuthError: A comprehensive error type for authentication-related issues.
Modules§
- pkce
- PKCE (Proof Key for Code Exchange) utilities.
Structs§
- Identity
- A unified identity structure returned by all providers.
- Memory
Store - An in-memory implementation of
SessionStore. - OAuth
Token - Represents the tokens returned by an OAuth2 provider.
- Session
- Represents an active user session.
- Session
Config - Configuration for session cookies.
Enums§
- Auth
Error - Errors that can occur during the authentication process.
- Same
Site - Controls whether a cookie is sent with cross-site requests.
Traits§
- Credentials
Provider - Trait for a Credentials-based provider (e.g., Email/Password).
- OAuth
Provider - Trait for an OAuth2-compatible provider.
- Session
Store - Trait for implementing session persistence.
- User
Mapper - Trait for mapping a provider identity to a local user.