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 2a186476..7859e537 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 @@ -62,9 +62,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send): return else: if not auth_config or not auth_config.CLIENT_ID: - request.state.claims_identity = ( - await token_validator.get_anonymous_claims() - ) + request.state.claims_identity = token_validator.get_anonymous_claims() else: response = JSONResponse( {"error": "Authorization header not found"},