Web App requires authentication(Open AI)

LeRoy, Kevin 185 Reputation points
2023-10-23T21:34:43.9166667+00:00

A web app requires authentication configuration.
My question is, how come other web apps with no authentication configuration work and this one doesn't?
I've been doing some research and I see that the image says Azure AI but I would like to confirm if Open AI enforces authentication.
I've been unable to find documentation that says that.

The other apps that work without authentication are not related to Open AI.

Hope you can help me.

aScreenshot 2023-10-23 153154

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

Answer accepted by question author
  1. Saurabh Sharma 23,866 Reputation points Microsoft Employee Moderator
    2023-10-24T18:20:24.3633333+00:00

    Hi @LeRoy, Kevin

    Welcome to Microsoft Q&A! Thanks for posting the question.

    I believe you have deployed this web application using Azure Open AI Chat Playground which provides ability to deploy the chat interface as a web app which includes the authentication configuration and thus you are seeing the above page. Once after the deployment (as stated in the shared screenshot) you need to wait for some time for the authentication configuration to be completed. After that you should be able to see the below page -

    User's image

    Once accepted you should be able to see the below use the web application (see screenshot below)-

    User's image

    However, if you don't want to use the authentication, then you need to customize the web application using the web application source code shared over here and you will be updating the logic in getUserInfoList in frontend/src/pages/chat/Chat.tsx to disable the authorization check like below:

    
    const getUserInfoList = async () => {
            setShowAuthMessage(false);
    }
    

    Then you need to deploy the web application to Azure portal for your purpose.

    Please let me know if you have any other questions.

    Thanks

    Saurabh


    Please 'Accept as answer' and Upvote if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Oussama Messabih 0 Reputation points
    2025-08-14T05:14:09.1266667+00:00

    To remove this restriction, you can add AUTH_ENABLED=False to the environment variables. This will disable authentication and allow anyone to access the chat functionality of your app. **This is not recommended for production apps.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.