0
votes

I am struggling to get my teams bot to work with my azure app service with Authentication enabled.

Here is my setup: I have a teams bot that reacts to some events in the team. I also have an azure web app that has an endpoint /api/messages that listens to bot messages. There is an Azure Bot Channels Registration that wires those two together.

It all works fine until I enable EasyAuth in my web app to authenticate with Azure AD (I need this because there are other endpoints in this web app that need to be secured). With authentication in web app enabled, bot messages do not reach the web app, and I cannot find any errors in logs either.

I tried to add different OAuth Connection Settings in my Bot Channels Registration, and also Allowed Token Audiences in auth settings in web app, but I haven't found a setup that works yet.

Could someone please tell me how this should be configured? Thank you in advance.

1
Check if this sample helps.Abhijit

1 Answers

1
votes

please refer to Azure App Service Authentication / Authorization (Easy Auth) guidance: https://github.com/cgillum/easyauth

The admin API setting: https://github.com/cgillum/easyauth/wiki

Advanced Application Settings: https://github.com/cgillum/easyauth/wiki/Advanced-Application-Settings

If you need more details, I would highly suggest you go through the official document: https://docs.microsoft.com/en-us/azure/app-service/overview-authentication-authorization