SSO 是否在由机器人启动的 Teams 任务模块中?

Is SSO in a Teams task module launched by a bot supported yet

我正在尝试将 SSO 添加到 html 任务模块,如 here, which specifies tabs, but also says that bots are supported. The issue is that when I call microsoftTeams.authentication.getAuthToken, I get back "App webApplicationInfo or resource not defined in manifest" (even though I've defined those in the manifest). A quick search led me to 所述,这听起来很相似。不过,这是从 2020 年 8 月开始的,所以我希望这只是我遗漏了一些东西,而不是一年半后仍然不受支持的情况。任何人都可以确认我是否应该能够从机器人创建的任务模块(从 1:1 对话中的自适应卡启动)中使用 SSO 对用户进行身份验证。

只是为了结束这个循环,我确实发现是的,这确实有效。说明 here 适用于任务模块和选项卡。调用团队 SDK microsoftTeams.authentication.getAuthToken 方法按预期工作。但是,要从任务模块进行图形调用,您仍然需要使用 AcquireTokenOnBehalfOf 交易身份验证令牌,我通过使用授权中的 SSO 令牌从任务模块发回机器人 api 来完成此操作 header。获得该令牌后,您就可以调用图形 API。