From af0879efe4247608366da94ce0eb6a51187b629f Mon Sep 17 00:00:00 2001 From: Axel Suarez Martinez Date: Thu, 26 Mar 2026 17:04:07 -0700 Subject: [PATCH] Parity with aiohttp --- .../hosting/fastapi/jwt_authorization_middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/microsoft-agents-hosting-fastapi/microsoft_agents/hosting/fastapi/jwt_authorization_middleware.py b/libraries/microsoft-agents-hosting-fastapi/microsoft_agents/hosting/fastapi/jwt_authorization_middleware.py index 7859e537..83b3fceb 100644 --- a/libraries/microsoft-agents-hosting-fastapi/microsoft_agents/hosting/fastapi/jwt_authorization_middleware.py +++ b/libraries/microsoft-agents-hosting-fastapi/microsoft_agents/hosting/fastapi/jwt_authorization_middleware.py @@ -61,7 +61,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send): await response(scope, receive, send) return else: - if not auth_config or not auth_config.CLIENT_ID: + if auth_config.ANONYMOUS_ALLOWED: request.state.claims_identity = token_validator.get_anonymous_claims() else: response = JSONResponse(