Module auth

Module auth 

Source
Expand description

Comprehensive authentication and authorization integration.

This module provides deep integration with auth-framework 0.4.0, enabling seamless authentication across all mountable interfaces and web server adapters.

§Features

  • Multiple Authentication Methods: JWT, API Keys, OAuth2, Passwords, TOTP
  • OAuth2/OIDC Server: Full authorization server capabilities
  • Multi-Factor Authentication: TOTP, SMS, Email verification
  • Audit Logging: Comprehensive security event tracking
  • Session Management: Secure session handling with device fingerprinting
  • Rate Limiting: Built-in protection against brute force attacks
  • Enterprise Features: SAML, WS-Security, Token introspection

Structs§

AuthContext
Central authentication context that can be shared across all mountable interfaces
AuthContextConfig
Configuration for the authentication context
AuthRequirements
Authentication requirements for routes
UserSession
User session information with enhanced auth-framework 0.4.0 features

Enums§

AuthError
Authentication errors
AuthMiddlewareResult
Authentication middleware result

Traits§

RequestAuthExt
Extension trait to add authentication information to requests

Functions§

auth_middleware
Original middleware function for authentication (backward compatibility)
enhanced_auth_middleware
Enhanced middleware function for authentication with auth-framework 0.4.0 features