Aug 20 - Session tenant binding

This commit is contained in:
2026-08-20 14:24:41 -04:00
parent 8b2582705d
commit 54a4a44bae
10 changed files with 325 additions and 13 deletions
+11
View File
@@ -12,6 +12,10 @@ from app.tenancy.middleware import init_tenancy
from app.tenancy.context import TenantContext
from app.tenancy.gates import feature_required, quota_soft_check
from app.tenancy.quota import check_quota, check_feature
from app.tenancy.session_binding import (
bind_session_tenant, enforce_session_tenant, current_tenant_id,
tag_user_id, parse_user_id, SESSION_TENANT_KEY,
)
__all__ = [
'RoutingSession',
@@ -21,4 +25,11 @@ __all__ = [
'quota_soft_check',
'check_quota',
'check_feature',
# MT-21
'bind_session_tenant',
'enforce_session_tenant',
'current_tenant_id',
'tag_user_id',
'parse_user_id',
'SESSION_TENANT_KEY',
]