Skip to main content

Module flow

Module flow 

Source
Expand description

§Authkestra Flow

authkestra-flow orchestrates authentication flows, such as OAuth2 Authorization Code, PKCE, Client Credentials, and Device Flow. It acts as the bridge between the core traits and the framework-specific adapters.

§Key Components

  • OAuth2Flow: Orchestrates the standard OAuth2 Authorization Code flow.
  • [Authkestra]: The main service that holds providers, session stores, and token managers.
  • [AuthkestraBuilder]: A builder for configuring and creating an [Authkestra] instance.
  • CredentialsFlow: Orchestrates direct credentials-based authentication (e.g., email/password).

Re-exports§

pub use crate::auth::ErasedOAuthFlow;
pub use crate::auth::Session;
pub use crate::auth::SessionConfig;
pub use crate::auth::SessionStore;
pub use crate::engine::Configured;
pub use crate::engine::Engine;
pub use crate::engine::EngineBuilder;
pub use crate::engine::Missing;
pub use client_credentials_flow::ClientCredentialsFlow;
pub use device_flow::DeviceAuthorizationResponse;
pub use device_flow::DeviceFlow;
pub use oauth2::OAuth2Flow;
pub use chrono;

Modules§

client_credentials_flow
Client Credentials flow implementation.
device_flow
Device Authorization flow implementation.
oauth2
OAuth2 Authorization Code flow implementation.

Structs§

CredentialsFlow
Orchestrates a direct credentials flow.
FlowContext
Context for an authentication flow.

Enums§

FlowResult
Result of an authentication flow execution.

Traits§

Flow
Orchestrates the steps of an authentication protocol (e.g., OAuth2, Device Flow).