A colleague at work is currently working on a prototype for Azure OpenAI Services integration. He deployed the prototype application directly from Azure OpenAI Studio to an Azure App Service. When he tried to access the application for the first time, he received the following error message.

Authentication Not Configured
This app does not have authentication configured. Please add an identity provider by finding your app in the Azure Portal and following these instructions
The error message still appeared after 10 minutes…
To fix the error, we followed the linked instructions: Tutorial – Add app authentication to a web app on Azure App Service – Azure App Service | Microsoft Learn. However, due to a lack of permissions, we created the app registration in advance and selected Pick an existing app registration in this directory as the App registration type in the wizard. In order for the app registration we created ourselves to work, we had to modify the app registration as follows.
Add redirect URI & enable ID token
- Go to the Azure portal
- Switch to the correct directory
- Open
Azure Active Directory - Select
App registrationsin the left navigation bar - Select tab
All applications - Open the corresponding app registration
- Select
Authentication - Click
+ Add a platform - Select
Web - Enter
{APP_SERVICE_URL}/.auth/login/aad/callbackas redirect URI - Tick checkbox
ID tokens (used for implicit and hybrid flows)
As a finals step an admin has to log in to the application by browsing to the app service URL and grant admin consent. Important: make sure the admin ticks the checkbox Consent on behalf of your organization before accepting.

Leave a Reply