chat-ui icon indicating copy to clipboard operation
chat-ui copied to clipboard

Documentation Request - Clarity around login flow outside of HuggingFace context

Open hack-r opened this issue 2 years ago • 2 comments

Could the docs (if not the code) be improved to make it clear how to:

  • run this without requiring users to authenticate
  • handle authentication via a 3rd party cloud (Azure, AWS, GCP, etc)
  • run this with an arbitrary 3rd party model (OpenAI, Rasa, etc)

I originally thought this was the purpose of OPENID_CLIENT_ID and OPENID_CLIENT_SECRET, but it seems not... (?).

hack-r avatar May 19 '23 02:05 hack-r

There is no need to have users authenticate if OPENID_CLIENT_ID and OPENID_CLIENT_SECRET are not specified.

handle authentication via a 3rd party cloud (Azure, AWS, GCP, etc)

The three parameters OPENID_CLIENT_ID, OPENID_CLIENT_SECRET and OPENID_PROVIDER_URL need to be specified.

For example https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/auth-oidc, you just need to enable OIDC with Azure / AWS / GCP / ... and specify the three params

coyotte508 avatar May 19 '23 09:05 coyotte508

🙏👍

hack-r avatar May 19 '23 14:05 hack-r

We updated the readme with #264 so hopefully it's clearer in the future! Closing this for now, feel free to reopen if I missed something.

nsarrazin avatar Jun 01 '23 06:06 nsarrazin