Skip to main content

Crate authkestra_core

Crate authkestra_core 

Source
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.
MemoryStore
An in-memory implementation of SessionStore.
OAuthToken
Represents the tokens returned by an OAuth2 provider.
Session
Represents an active user session.
SessionConfig
Configuration for session cookies.

Enums§

AuthError
Errors that can occur during the authentication process.
SameSite
Controls whether a cookie is sent with cross-site requests.

Traits§

CredentialsProvider
Trait for a Credentials-based provider (e.g., Email/Password).
OAuthProvider
Trait for an OAuth2-compatible provider.
SessionStore
Trait for implementing session persistence.
UserMapper
Trait for mapping a provider identity to a local user.