Crate elif_auth

Crate elif_auth 

Source
Expand description

§elif-auth: Authentication and Authorization for elif.rs

This crate provides comprehensive authentication and authorization capabilities for the elif.rs web framework, including JWT tokens, sessions, RBAC, and MFA.

Re-exports§

pub use error::AuthError;
pub use traits::AuthProvider;
pub use traits::Authenticatable;
pub use traits::UserContext;
pub use config::AuthConfig;
pub use config::AuthRateLimitConfig;
pub use config::JwtConfig;
pub use config::MfaConfig;
pub use config::PasswordConfig;
pub use config::SessionConfig;
pub use providers::jwt::JwtProvider;
pub use providers::session::SessionProvider;
pub use rbac::Permission;
pub use rbac::Role;
pub use rbac::UserRole;

Modules§

config
Authentication configuration types and utilities
error
Authentication and authorization error types
middleware
Authentication logic for middleware integration
providers
Authentication providers implementations
rbac
Role-Based Access Control (RBAC) system
traits
Core authentication and authorization traits
utils
Password hashing and cryptographic utilities

Constants§

VERSION
Authentication system version

Type Aliases§

AuthResult
Authentication result type alias