From db9412ce54f0a851910bc9ece8f6720d8383aac6 Mon Sep 17 00:00:00 2001 From: Thiago Romano Date: Fri, 28 Feb 2025 10:32:10 -0300 Subject: [PATCH] Fixing tenant endpoint access Signed-off-by: Thiago Romano --- acapy_agent/admin/decorators/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acapy_agent/admin/decorators/auth.py b/acapy_agent/admin/decorators/auth.py index 982a66872b..500850cbcf 100644 --- a/acapy_agent/admin/decorators/auth.py +++ b/acapy_agent/admin/decorators/auth.py @@ -78,7 +78,7 @@ async def tenant_auth(request): (multitenant_enabled and authorization_header) or (not multitenant_enabled and valid_key) or (multitenant_enabled and valid_key and base_wallet_allowed_route) - or insecure_mode + or (insecure_mode and not multitenant_enabled) or request.method == "OPTIONS" ): return await handler(request)