atproto_oauth/lib.rs
1//! OAuth 2.0 implementation for AT Protocol with DPoP support, PKCE, and JWT operations.
2//!
3//! Provides binaries:
4//! - `atproto-oauth-tool`: OAuth authentication workflow management (via atproto-oauth-axum crate)
5
6#![forbid(unsafe_code)]
7#![warn(missing_docs)]
8
9pub mod dpop;
10/// Base64 encoding and decoding utilities.
11pub mod encoding;
12/// Error types and handling.
13pub mod errors;
14/// JSON Web Key (JWK) generation and management.
15pub mod jwk;
16/// JSON Web Token (JWT) minting and verification.
17pub mod jwt;
18/// PKCE (Proof Key for Code Exchange) implementation for OAuth 2.0 security.
19pub mod pkce;
20pub mod resources;
21/// OAuth request storage abstraction for CRUD operations.
22pub mod storage;
23/// LRU-based implementation of OAuth request storage (requires `lru` feature).
24#[cfg(feature = "lru")]
25pub mod storage_lru;
26/// OAuth workflow implementation for AT Protocol authorization flows.
27pub mod workflow;
28
29#[cfg(feature = "axum")]
30pub mod axum;