chat-with-gpt icon indicating copy to clipboard operation
chat-with-gpt copied to clipboard

Support Oauth/SSO

Open raldone01 opened this issue 2 years ago • 6 comments

It would be nice if there was a setting to prevent usage without Login.

raldone01 avatar Apr 19 '23 13:04 raldone01

ff on this

ricopollantecs avatar Apr 20 '23 04:04 ricopollantecs

What does that mean?

raldone01 avatar Apr 20 '23 05:04 raldone01

following

ricopollantecs avatar Apr 23 '23 00:04 ricopollantecs

I could successfully setup the application with a wso2 identity server instance by using the auth0 configuration section and adding the token endpoint as the issuer... so maybe this already works for some scenarios?

matthid avatar Apr 30 '23 09:04 matthid

I was able to setup AzureAD authentication, creating a quick howto in case you want to add it to the README or a separate file.

Azure AD

  1. Sign in to the Azure Portal
  2. Search for and select Azure Active Directory
  3. Select App registrations > New registration
  4. Enter a display Name
  5. Choose Web
  6. Enter https://FQDN/chatapi/login-callback
  7. Select Overview
  8. Note of the Application (client) ID and Directory (tenant) ID
  9. Select Authentication
  10. Check Access tokens and IT tokens
  11. Select Certificates & Secrets
  12. Create a secret and note the value

config.yaml of chat-with-gpt

authSecret: **Secret created in step 11**

auth0:
  clientID: **Application (client) ID**
  issuer:  https://login.microsoftonline.com/**Directory (tenant) ID**/

publicSiteURL: https://FQDN

bsu3338 avatar May 02 '23 15:05 bsu3338

Someone done it with google oauth2 ?

ricopollantecs avatar May 10 '23 01:05 ricopollantecs