简体   繁体   English

Microsoft Bot Teams 错误“未在 Teams 频道上为机器人启用 SSO。”

[英]Microsoft Bot Teams error “SSO is not enabled for bot on Teams channel.”

SSO is not enabled for bot on Teams channel.团队频道上的机器人未启用 SSO。

I develop a bot on Bot Framework and Azure Service, using python 3.7.我使用 python 3.7 在 Bot Framework 和 Azure 服务上开发了一个机器人。 I needed user authentication in the Microsoft system to use Graph API, etc.我需要在 Microsoft 系统中进行用户身份验证才能使用 Graph API 等。

Previously successfully used the example 18.bot-authentication and 24.bot-authentication-msgraph.之前成功使用了示例18.bot-authentication 和 24.bot-authentication-msgraph。

And this guide I got the error “SSO is not enabled for bot”.在本指南中,我收到错误“机器人未启用 SSO”。 I created new certificates and a new server with a bot, for the source code example 18.bot-authentication.我为源代码示例 18.bot-authentication 创建了新证书和一个带有机器人的新服务器。 Created a new channel in Azure and try to login from Teams, but have the same problem.在 Azure 中创建了一个新频道并尝试从 Teams 登录,但遇到同样的问题。 In Bot Emulator and test in web-chat both authentications work.在 Bot Emulator 和网络聊天测试中,两种身份验证都有效。 Teams want SSO.团队需要 SSO。

Any tips?有小费吗? Thank you谢谢

Please refer to the Teams-Auth sample and the documentation which helps you get started with authenticating a bot in Microsoft Teams as Teams behaves slightly differently than other channels.请参阅 Teams-Auth 示例文档,它们可帮助您开始对 Microsoft Teams 中的机器人进行身份验证,因为 Teams 的行为与其他渠道略有不同。 Presently, you can enable Single Sign-On(SSO) in a custom tab.目前,您可以在自定义选项卡中启用单点登录 (SSO) Microsoft Teams is currently working on the feature to enable SSO for bots. Microsoft Teams 目前正在开发为机器人启用 SSO 的功能。

Please check the following articles: 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/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 https://docs.microsoft.com/en-us/power-virtual-agents/publication-add-bot-to-microsoft-teams

The second article explains step by step how you can set a PVA bot to use in Microsoft Teams.第二篇文章逐步解释了如何设置 PVA 机器人以在 Microsoft Teams 中使用。

Please be aware of this part: "Currently, if your bot supports end-user authentication, the user will not be able to explicitly sign out. This will fail the Microsoft Teams AppSource certification if you are publishing your bot in the Seller Dashboard. This does not apply to personal or tenant usage of the bot. Learn more at Publish your Microsoft Teams app and AppSource Validation Policy."请注意这一部分:“目前,如果您的机器人支持最终用户身份验证,用户将无法明确注销。如果您在卖家仪表板中发布您的机器人,这将无法通过 Microsoft Teams AppSource 认证。这不适用于机器人的个人或租户使用。在发布您的 Microsoft Teams 应用程序和 AppSource 验证策略中了解更多信息。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM