auth library

Classes

AllDevicesLogoutStrategy
All devices logout strategy
ApiGuard
API authentication guard
AuthConfig
Configuration interface for authentication services
AuthDriver
Authentication driver interface
Authenticatable
Interface for authenticatable entities (users)
AuthManager
Authentication manager for handling user authentication
AuthMiddleware
Enhanced Authentication Middleware for protecting routes
AuthMiddlewareConfig
Configuration for AuthMiddleware
AuthRepository
Repository interface for authentication data access
AuthResponse
Unified authentication response
AuthServiceProvider
Enhanced Authentication Service Provider
DatabaseAuthenticatable
Database authenticatable implementation
DatabaseAuthRepository
Database implementation of AuthRepository
DatabaseTokenService
Database implementation of TokenService
Guard
Base authentication guard
HashPasswordVerifier
Hash helper implementation of PasswordVerifier
JWTDriver
JWT authentication driver
KhademAuthConfig
Khadem implementation of AuthConfig
MapAuthenticatable
Simple implementation of Authenticatable for map-based user data. This provides backward compatibility for code that uses maps directly.
PasswordVerifier
Password verification interface
SecureTokenGenerator
Secure token generator implementation
SingleDeviceLogoutStrategy
Single device logout strategy
TokenDriver
Token-based authentication driver
TokenGenerator
Token generator interface for creating secure tokens
TokenInvalidationContext
Context object containing data needed for token invalidation
TokenInvalidationStrategy
Token invalidation strategy interface
TokenInvalidationStrategyFactory
Factory for creating token invalidation strategies
TokenService
Token management service interface
WebAuthMiddleware
Web Authentication Middleware
WebGuard
Web authentication guard

Enums

AuthType
Authentication types supported by the middleware
LogoutType
Types of logout strategies available

Extensions

RequestAuth on Request
Enhanced authentication extension for HTTP requests

Exceptions / Errors

AuthException
Exception thrown for authentication-related errors