I have published my code from the Bot Framework Virtual Assistant demo to the Azure Portal. When attempting to chat with the Bot via Test In Web Chat I see the following error in Application Insights: 400 Bad Request https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token
Via Postman, I can confirm that the /botframework.com/ portion of this url doesn't work for me, but I have success when I replace that with our tenant domain. The following article helped me make this discovery: https://docs.microsoft.com/en-us/azure/bot-service/bot-service-troubleshoot-authentication-problems?view=azure-bot-service-4.0
Due to certain restrictions, it was necessary for me to manually create the Azure App Registration. Based on the following github issue, it is necessary to toggle the Supported account types to allow Accounts in any organizational directory to access this app: https://github.com/Microsoft/BotFramework-Emulator/issues/1068
This point is also emphasized in the following Microsoft Doc: https://docs.microsoft.com/en-us/azure/bot-service/bot-service-quickstart-registration?view=azure-bot-service-3.0#manual-app-registration
I need to justify the necessity of this change, so my questions are as follows:
- What services rely on this botframework.com tenant domain? Is it specifically the Web Chat tool?
- Is there a way to change the services dependant on botframework.com auth tokens to use our tenant instead?