Bot Framework Authentication Error

Lampe, Maria 0 Reputation points

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:

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 Bot Service
Azure Bot Service
An Azure service that provides an integrated environment for bot development.
589 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,348 questions
{count} votes