简体   繁体   中英

Authentication Sample Bot does not let me authenticate in Microsoft Teams

I try to get the Authentication Sample Bot to work. When I use the Bot in Microsoft Teams, the OAuthPrompt seems to render correctly:

在此处输入图片说明

but when I click the button, nothing happens. I see this in the console:

在此处输入图片说明

Why doesn't this work?

Just creating an Azure Bot Service 'Bot Channels Registration' is not enough to use bot authentication with Microsoft Teams. You have to have a manifest file zipped and uploaded as a custom app into Microsoft Teams. In that manifest file you have to specify the domain of the Bot Framework token endpoint:

"validDomains": [ "token.botframework.com" ]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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