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)