From 2b8b3c4b10e9e50a248f39f438d4eed25231ffee Mon Sep 17 00:00:00 2001 From: Christof Date: Sat, 24 Jan 2026 09:30:34 +0100 Subject: [PATCH] fix(msteams): remove remaining /.default postfix (#1574) This fixes the msteams probe which otherwise incorrectly assumes teams is not working. The @microsoft/agents-hosting SDK's MsalTokenProvider automatically appends /.default to all scope strings in its token acquisition methods (acquireAccessTokenViaSecret, acquireAccessTokenViaFIC, acquireAccessTokenViaWID, acquireTokenWithCertificate in msalTokenProvider.ts). This is consistent SDK behavior, not a recent change. The current code is including .default in scope URLs, resulting in invalid double suffixes like https://graph.microsoft.com/.default/.default. I am not sure how the .default postfixed worked in the past for you if I am honest. This was confirmed to cause Graph API authentication errors. Removing the .default suffix from our scope strings allows the SDK to append it correctly, resolving the issue. I confirmed it manually on my teams setup Before: we pass .default -> SDK appends -> double .default (broken) After: we pass base URL -> SDK appends -> single .default (works) Co-authored-by: Christof Salis --- extensions/msteams/src/probe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/msteams/src/probe.ts b/extensions/msteams/src/probe.ts index 2d6dd7429..60711bc70 100644 --- a/extensions/msteams/src/probe.ts +++ b/extensions/msteams/src/probe.ts @@ -65,7 +65,7 @@ export async function probeMSTeams(cfg?: MSTeamsConfig): Promise