From 93e7d6fe48597e7cc70463ca5830c7ef5557609f Mon Sep 17 00:00:00 2001 From: wenytang-ms Date: Wed, 20 Sep 2023 16:55:30 +0800 Subject: [PATCH] fix: fix the exchange token interface prarameter --- .../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 {