elif_auth/lib.rs
1//! # elif-auth: Authentication and Authorization for elif.rs
2//!
3//! This crate provides comprehensive authentication and authorization capabilities
4//! for the elif.rs web framework, including JWT tokens, sessions, RBAC, and MFA.
5
6pub mod config;
7pub mod error;
8pub mod traits;
9pub mod providers;
10pub mod middleware;
11pub mod utils;
12pub mod rbac;
13
14// Re-exports for convenient access
15pub use config::*;
16pub use error::*;
17pub use traits::*;
18pub use providers::*;
19pub use utils::*;
20pub use rbac::*;
21
22/// Authentication result type alias
23pub type AuthResult<T> = Result<T, AuthError>;
24
25/// Authentication system version
26pub const VERSION: &str = env!("CARGO_PKG_VERSION");