Bot Framework Authentication Error

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%2CcsharpI 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
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 tokenSo 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.