Search code examples
azure-active-directorybotframeworkmicrosoft-teamsazure-bot-service

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:

enter image description here

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

enter image description here

Why doesn't this work?


Solution

  • 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" ]