Bot Framework Authentication Error

Lampe, Maria 0 Reputation points
2023-05-23T20:21:08.7133333+00:00

I am trying to develop a chat bot for teams that uses the graph API to change the out of office reply notice.
For that I need to implement authentication to my bot. I used the following tutorial: https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-authentication?view=azure-bot-service-4.0&tabs=userassigned%2Caadv2%2Ccsharp

I know this is not the teams specific authentication tutorial, but I decided to first make the complete code work in the bot framework emulator since it's much easier to debug compared to teams.

When starting the bot in the emulator, I am supposed to see a card with a login button, but this card never appears for me, every time I try to make a request to the bot I get a 401 unauthorized error
User's image

I checked the Azure ID, password, Tenant ID and its all correct in the code
In the azure portal everything is wired up correctly aswell and if I test the connection I get a token

So I went ahead and tested some requests in Postman. And I have the same problem, I dont get a token over the get request.
My colleagues and I tested it over different azure tenants and we all run into the same problem.

I hope somebody can help us out! if there are questions I will try my best to provide an answer.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
746 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,581 questions
{count} votes