authly-flow
High-level authentication flows for authly-rs.
This crate orchestrates authentication flows such as OAuth2 and credentials-based auth, providing a high-level API that is independent of web frameworks.
Features
OAuth2Flow: Orchestrates the Authorization Code flow (initiation and finalization).CredentialsFlow: Orchestrates direct credential-based authentication.- Support for
UserMapperto integrate with local user databases.
Usage
Add this to your Cargo.toml:
[]
= "0.1.0"
Example: OAuth2 Flow initiation
use OAuth2Flow;
use GitHubProvider;
// Setup provider and flow
let provider = new;
let flow = new;
// Generate authorization URL
let = flow.initiate_auth;
Part of authly-rs
This crate is part of the authly-rs workspace.