openclaw/extensions/msteams/src
Christof ef777d6bb6
fix(msteams): remove .default suffix from graph scopes (#1507)
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.

Our code was including `.default` in scope URLs, resulting in invalid
double suffixes like `https://graph.microsoft.com/.default/.default`.

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.

Before: we pass `.default` -> SDK appends -> double `.default` (broken)
After:  we pass base URL  -> SDK appends -> single `.default` (works)

Co-authored-by: Christof Salis <c.salis@vertifymed.com>
2026-01-24 00:07:22 +00:00
..
attachments fix(msteams): remove .default suffix from graph scopes (#1507) 2026-01-24 00:07:22 +00:00
monitor-handler refactor: standardize channel logging 2026-01-23 23:34:30 +00:00
attachments.test.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
attachments.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
channel.directory.test.ts refactor: migrate extensions to plugin sdk 2026-01-18 02:55:07 +00:00
channel.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
conversation-store-fs.test.ts refactor: route channel runtime via plugin api 2026-01-18 11:01:16 +00:00
conversation-store-fs.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
conversation-store-memory.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
conversation-store.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
directory-live.ts fix(msteams): remove .default suffix from graph scopes (#1507) 2026-01-24 00:07:22 +00:00
errors.test.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
errors.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
file-consent-helpers.test.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
file-consent-helpers.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
file-consent.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
graph-chat.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
graph-upload.ts fix(msteams): remove .default suffix from graph scopes (#1507) 2026-01-24 00:07:22 +00:00
inbound.test.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
inbound.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
index.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
media-helpers.test.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
media-helpers.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
messenger.test.ts fix: add per-channel markdown table conversion (#1495) (thanks @odysseus0) 2026-01-23 18:39:25 +00:00
messenger.ts fix: add per-channel markdown table conversion (#1495) (thanks @odysseus0) 2026-01-23 18:39:25 +00:00
monitor-handler.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
monitor-types.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
monitor.ts refactor: route channel runtime via plugin api 2026-01-18 11:01:16 +00:00
onboarding.ts feat: resolve allowlists in channel plugins 2026-01-18 22:52:00 +00:00
outbound.ts refactor: route channel runtime via plugin api 2026-01-18 11:01:16 +00:00
pending-uploads.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
policy.test.ts refactor: migrate extensions to plugin sdk 2026-01-18 02:55:07 +00:00
policy.ts refactor: migrate extensions to plugin sdk 2026-01-18 02:55:07 +00:00
polls-store-memory.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
polls-store.test.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
polls.test.ts refactor: route channel runtime via plugin api 2026-01-18 11:01:16 +00:00
polls.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
probe.test.ts refactor: migrate extensions to plugin sdk 2026-01-18 02:55:07 +00:00
probe.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
reply-dispatcher.ts refactor: standardize channel logging 2026-01-23 23:34:30 +00:00
resolve-allowlist.ts fix(msteams): remove .default suffix from graph scopes (#1507) 2026-01-24 00:07:22 +00:00
runtime.ts refactor: route channel runtime via plugin api 2026-01-18 11:01:16 +00:00
sdk-types.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
sdk.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
send-context.ts fix: msteams attachments + plugin prompt hints 2026-01-22 03:37:29 +00:00
send.ts fix: add per-channel markdown table conversion (#1495) (thanks @odysseus0) 2026-01-23 18:39:25 +00:00
sent-message-cache.test.ts fix: treat reply-to-bot as implicit mention across channels 2026-01-16 21:51:01 +00:00
sent-message-cache.ts fix: treat reply-to-bot as implicit mention across channels 2026-01-16 21:51:01 +00:00
storage.ts refactor: route channel runtime via plugin api 2026-01-18 11:01:16 +00:00
store-fs.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
token.ts refactor: migrate extensions to plugin sdk 2026-01-18 02:55:07 +00:00