akshata29 / entaoai

Chat and Ask on your own data. Accelerator to quickly upload your own enterprise data and use OpenAI services to chat to that uploaded data and ask questions
MIT License
841 stars 254 forks source link

web app display: Authentication Not Configured #31

Closed cyberflying closed 1 year ago

cyberflying commented 1 year ago

after sync fork and rerun the action workflow: Deploy Python API and Deploy App, when access the web site, it display

image

I found only 3 tabs have this issue: Chat, Ask a question and PIB.

akshata29 commented 1 year ago

That's by design. Introduced a way to secure the website (and selected features) as that was ask. I will change the message to be more clear, but for those feature in current state you will have to deploy in your tenant and will provide instruction on how to configure that.

cyberflying commented 1 year ago

got it, thanks!

Mshz2 commented 1 year ago

@akshata29 Thanks for the support. Is there anyway to disable the authentication feature above?

@cyberflying can I please ask if you found any work-around to diasble authentication ?

cyberflying commented 1 year ago

I followed this doc, it could allow AAD user to access the website: https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service#3-configure-authentication-and-authorization

akshata29 commented 1 year ago

@akshata29 Thanks for the support. Is there anyway to disable the authentication feature above?

@cyberflying can I please ask if you found any work-around to diasble authentication ?

Thanks @cyberflying.

@Mshz2 If you want to disable the authentication by itself, the core code are in ChatGpt.tsx, OneShot.tsx and Pib.tsx. For each of those in the useEffect method, comment following lines of code

if (window.location.hostname != "localhost") { getUserInfoList(); setShowAuthMessage(true) } else setShowAuthMessage(false)