From c47278c460b895994f8500623b8e33a5c252656a Mon Sep 17 00:00:00 2001 From: Reza Shojaei Date: Thu, 20 Nov 2025 22:38:50 -0800 Subject: [PATCH] Updated the scope for messaging. --- dotnet/semantic-kernel/sample-agent/appsettings.json | 2 +- python/agent-framework/sample-agent/host_agent_server.py | 2 +- python/google-adk/sample-agent/.env.template | 2 +- python/openai/sample-agent/host_agent_server.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotnet/semantic-kernel/sample-agent/appsettings.json b/dotnet/semantic-kernel/sample-agent/appsettings.json index 262d3fe2..0b6b4d26 100644 --- a/dotnet/semantic-kernel/sample-agent/appsettings.json +++ b/dotnet/semantic-kernel/sample-agent/appsettings.json @@ -34,7 +34,7 @@ "ClientId": "", // this is the Client ID used for the Azure Bot "ClientSecret": "", // this is the Client Secret used for the connection. "Scopes": [ - "https://api.botframework.com/.default" + "5a807f24-c9de-44ee-a3a7-329e88a00ffc/.default" ] } } diff --git a/python/agent-framework/sample-agent/host_agent_server.py b/python/agent-framework/sample-agent/host_agent_server.py index 93ea1aef..562d019d 100644 --- a/python/agent-framework/sample-agent/host_agent_server.py +++ b/python/agent-framework/sample-agent/host_agent_server.py @@ -233,7 +233,7 @@ def create_auth_configuration(self) -> AgentAuthConfiguration | None: client_id=client_id, tenant_id=tenant_id, client_secret=client_secret, - scopes=["https://api.botframework.com/.default"], + scopes=["5a807f24-c9de-44ee-a3a7-329e88a00ffc/.default"], ) if environ.get("BEARER_TOKEN"): diff --git a/python/google-adk/sample-agent/.env.template b/python/google-adk/sample-agent/.env.template index 8e9911aa..80dd31c5 100644 --- a/python/google-adk/sample-agent/.env.template +++ b/python/google-adk/sample-agent/.env.template @@ -5,7 +5,7 @@ GOOGLE_API_KEY= CONNECTIONS__SERVICE_CONNECTION__SETTINGS__CLIENTID= CONNECTIONS__SERVICE_CONNECTION__SETTINGS__CLIENTSECRET= CONNECTIONS__SERVICE_CONNECTION__SETTINGS__TENANTID= -CONNECTIONS__SERVICE_CONNECTION__SETTINGS__SCOPES=https://api.botframework.com/.default +CONNECTIONS__SERVICE_CONNECTION__SETTINGS__SCOPES=5a807f24-c9de-44ee-a3a7-329e88a00ffc/.default AGENTAPPLICATION__USERAUTHORIZATION__HANDLERS__AGENTIC__SETTINGS__TYPE=AgenticUserAuthorization AGENTAPPLICATION__USERAUTHORIZATION__HANDLERS__AGENTIC__SETTINGS__SCOPES=https://graph.microsoft.com/.default diff --git a/python/openai/sample-agent/host_agent_server.py b/python/openai/sample-agent/host_agent_server.py index ef0b5e24..d124d980 100644 --- a/python/openai/sample-agent/host_agent_server.py +++ b/python/openai/sample-agent/host_agent_server.py @@ -198,7 +198,7 @@ def create_auth_configuration(self) -> AgentAuthConfiguration | None: client_id=client_id, tenant_id=tenant_id, client_secret=client_secret, - scopes=["https://api.botframework.com/.default"], + scopes=["5a807f24-c9de-44ee-a3a7-329e88a00ffc/.default"], ) except Exception as e: logger.error(