How to set up user login via Google OAuth
Internal
External
Danswer
)OAuth client ID
Select Web application
then call it Danswer
Add a Authorized JavaScript origins
as:
http://localhost:3000
for local or replace with https://<WEB_DOMAIN>
(e.g. https://www.danswer.ai
) if setting up for prod.Authorized redirect URIs
as:
http://localhost:3000/auth/oauth/callback
for local setup or https://<WEB_DOMAIN>/auth/oauth/callback
if setting up for prod.AUTH_TYPE=google_oauth
OAUTH_CLIENT_ID=<your client id from above>
OAUTH_CLIENT_SECRET=<your client secret from above>
WEB_DOMAIN=<your domain including protocol e.g. https://www.danswer.ai>
REPLACE-THIS
values in secrets.yaml with thebase64 encoded
client ID and client secret from above.