From 123cc88312f84b33b8f9fa5ff0de30d2731d5a19 Mon Sep 17 00:00:00 2001 From: wenyt <75360946+wenytang-ms@users.noreply.github.com> Date: Wed, 4 Oct 2023 21:13:56 +0800 Subject: [PATCH] fix: fix the exchange token interface prarameter (#4536) --- .../botbuilder/src/teams/teamsSSOTokenExchangeMiddleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/botbuilder/src/teams/teamsSSOTokenExchangeMiddleware.ts b/libraries/botbuilder/src/teams/teamsSSOTokenExchangeMiddleware.ts index b9377a0b60..c93c79264f 100644 --- a/libraries/botbuilder/src/teams/teamsSSOTokenExchangeMiddleware.ts +++ b/libraries/botbuilder/src/teams/teamsSSOTokenExchangeMiddleware.ts @@ -155,7 +155,7 @@ export class TeamsSSOTokenExchangeMiddleware implements Middleware { tokenExchangeResponse = await context.adapter.exchangeToken( context, this.oAuthConnectionName, - context.activity.channelId, + context.activity.from.id, { token: tokenExchangeRequest.token } ); } else {