Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /SHAdd0WTAka_Zen-Ai-Pentest /auth /__init__.py
| """ | |
| Zen-AI-Pentest Authentication Module | |
| ===================================== | |
| A secure authentication system implementing: | |
| - JWT Authentication with Access & Refresh Tokens | |
| - OAuth2 Password Flow | |
| - Role-Based Access Control (RBAC) | |
| - Multi-Factor Authentication (TOTP) | |
| - API Key Management | |
| - Session Management | |
| - Bcrypt Password Hashing | |
| - Token Blacklisting | |
| - Rate Limiting | |
| - Audit Logging | |
| Compliance: ISO 27001, OWASP ASVS 2026, Zero-Trust Architecture | |
| """ | |
| from .config import AuthConfig, BcryptConfig, JWTConfig, MFAConfig | |
| from .jwt_handler import JWTHandler, TokenPayload, TokenType | |
| from .mfa import MFAError, MFAHandler | |
| from .middleware import AuditLogMiddleware, AuthMiddleware, RateLimitMiddleware | |
| from .password_hasher import PasswordHasher, PasswordStrengthError | |
| from .rbac import Permission, RBACManager, Role, require_permission | |
| from .user_manager import UserManager, get_user_manager | |
| __version__ = "1.1.0" # Added database layer | |
| __author__ = "Zen-AI-Pentest Team" | |
| __all__ = [ | |
| "JWTHandler", | |
| "TokenType", | |
| "TokenPayload", | |
| "PasswordHasher", | |
| "PasswordStrengthError", | |
| "RBACManager", | |
| "Role", | |
| "Permission", | |
| "require_permission", | |
| "MFAHandler", | |
| "MFAError", | |
| "AuthConfig", | |
| "JWTConfig", | |
| "BcryptConfig", | |
| "MFAConfig", | |
| "AuthMiddleware", | |
| "RateLimitMiddleware", | |
| "AuditLogMiddleware", | |
| "UserManager", | |
| "get_user_manager", | |
| ] | |
Xet Storage Details
- Size:
- 1.4 kB
- Xet hash:
- 2bb17df30405e55701c417ea2aa69dd1bec1138d6560edd23385814f3b585fc8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.