From 7b9400ee6bdaad6854dbcad5e402e9b283c1fdb3 Mon Sep 17 00:00:00 2001 From: Rodrigo Brandao Date: Wed, 29 Jul 2026 15:12:24 -0700 Subject: [PATCH] Anonymous request handling fix --- .../microsoft_agents/hosting/core/_http_adapter_base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/_http_adapter_base.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/_http_adapter_base.py index 3cc217fb..e99b80b5 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/_http_adapter_base.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/_http_adapter_base.py @@ -107,8 +107,10 @@ async def process_request( span.share(activity=activity) # Get claims identity (default to anonymous if not set by middleware) - claims_identity: ClaimsIdentity = ( - request.get_claims_identity() or ClaimsIdentity({}, False) + claims_identity: ( + ClaimsIdentity + ) = request.get_claims_identity() or ClaimsIdentity( + {}, False, authentication_type="Anonymous" ) # Validate required activity fields