Allow tenant header for bearer-authenticated requests
This commit is contained in:
@@ -131,7 +131,7 @@ def get_actor(
|
||||
payload = decode_app_token(value.strip())
|
||||
tenant_id = str(payload.get("tenant_id") or "").strip()
|
||||
tenant_source = "token" if tenant_id else None
|
||||
if not tenant_id and legacy_header_auth_allowed():
|
||||
if not tenant_id:
|
||||
tenant_id = str(x_tenant_id or "").strip()
|
||||
tenant_source = "header" if tenant_id else None
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user