Download security/__init__.py from ACA050/aegislm: direct link, hf CLI and curl.
- Browser
- Download file 705 Bytes
-
https://huggingface.co/spaces/ACA050/aegislm/resolve/main/security/__init__.py
- Command line
-
hf download hf://spaces/ACA050/aegislm/security/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/ACA050/aegislm/resolve/main/security/__init__.py
705 Bytes
| """ | |
| Security Module for AegisLM Multi-Tenant RBAC | |
| This module provides: | |
| - Role-Based Access Control (RBAC) | |
| - Tenant scope enforcement | |
| - Authentication middleware | |
| """ | |
| from security.rbac import ( | |
| Role, | |
| Permission, | |
| RBAC, | |
| rbac_check, | |
| ) | |
| from security.tenant_scope import ( | |
| TenantScope, | |
| get_tenant_scope, | |
| require_tenant, | |
| ) | |
| from security.auth_middleware import ( | |
| AuthMiddleware, | |
| get_current_user, | |
| get_current_tenant, | |
| ) | |
| __all__ = [ | |
| "Role", | |
| "Permission", | |
| "RBAC", | |
| "rbac_check", | |
| "TenantScope", | |
| "get_tenant_scope", | |
| "require_tenant", | |
| "AuthMiddleware", | |
| "get_current_user", | |
| "get_current_tenant", | |
| ] | |