【问题标题】:Microsoft Bot Teams error "SSO is not enabled for bot on Teams channel."Microsoft Bot Teams 错误“未为 Teams 频道上的 bot 启用 SSO。”
【发布时间】:2020-12-17 18:43:46
【问题描述】:

没有为 Teams 频道上的机器人启用 SSO。

我使用 python 3.7 在 Bot Framework 和 Azure 服务上开发了一个机器人。我需要在 Microsoft 系统中进行用户身份验证才能使用 Graph API 等。

之前成功使用过example 18.bot-authentication 和 24.bot-authentication-msgraph。

还有这个guide 我收到错误“未为机器人启用 SSO”。我为源代码示例 18.bot-authentication 创建了新证书和带有机器人的新服务器。在 Azure 中创建了一个新频道并尝试从 Teams 登录,但遇到了同样的问题。在 Bot Emulator 和网络聊天测试中,两种身份验证都有效。团队需要 SSO。

有什么建议吗?谢谢

【问题讨论】:

    标签: python-3.x azure authentication botframework microsoft-teams


    【解决方案1】:

    请参阅 Teams-Auth sampledocumentation,这有助于您开始在 Microsoft Teams 中对机器人进行身份验证,因为 Teams 的行为与其他渠道略有不同。目前,您可以在自定义选项卡中启用Single Sign-On(SSO)。 Microsoft Teams 目前正在开发为机器人启用 SSO 的功能。

    【讨论】:

      【解决方案2】:

      请查看以下文章: https://docs.microsoft.com/en-us/power-virtual-agents/advanced-end-user-authentication https://docs.microsoft.com/en-us/power-virtual-agents/configuration-end-user-authentication

      https://docs.microsoft.com/en-us/power-virtual-agents/publication-add-bot-to-microsoft-teams

      第二篇文章逐步解释了如何设置 PVA 机器人以在 Microsoft Teams 中使用。

      请注意这部分: “目前,如果您的机器人支持最终用户身份验证,则用户将无法明确退出。如果您在卖方仪表板中发布您的机器人,这将无法通过 Microsoft Teams AppSource 认证。这不适用于个人或租户机器人的使用。在发布您的 Microsoft Teams 应用和 AppSource 验证策略中了解更多信息。"

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-09-05
        • 2017-11-05
        • 2022-07-14
        • 2023-03-11
        • 2021-02-19
        • 2021-01-08
        • 1970-01-01
        • 2019-02-04
        相关资源
        最近更新 更多