mod.rs
28 lignes · 1057 octets
/// Authentication module for Rustwarden /// /// Provides authentication and authorization functionality including: /// - JWT token generation and validation /// - Session management /// - Refresh token system /// - Authentication middleware /// Request handlers for login, logout, refresh, and current-user endpoints. /// HTTP handlers for the two-step email change (RFC 0041). pub mod email_change_handlers; /// Self-contained HTML pages for the email-change links (RFC 0041). mod email_change_pages; pub mod extractors; /// Authentication HTTP handlers. pub mod handlers; /// JWT creation and validation service. pub mod jwt; /// Ready-to-mount router for the built-in JSON authentication API. pub mod routes; pub use routes::auth_api_routes; /// Axum extractor that validates a Bearer JWT and provides the authenticated user. pub mod jwt_extractor; /// OAuth 2.0 / OIDC handlers (redirect initiation and callback processing). #[cfg(feature = "oauth")] pub mod oauth_handlers; /// Session helpers (CSRF token generation and retrieval). pub mod session;
GitRust