Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google OAuth error - Access blocked: Authorization Error #1432

Open
gambithunt opened this issue May 8, 2024 · 1 comment
Open

Google OAuth error - Access blocked: Authorization Error #1432

gambithunt opened this issue May 8, 2024 · 1 comment

Comments

@gambithunt
Copy link

gambithunt commented May 8, 2024

I've followed instruction and changed the .env file in danswer/deployment/docker_compose

AUTH_TYPE=google_oauth
GOOGLE_OAUTH_CLIENT_ID=<from google>
GOOGLE_OAUTH_CLIENT_SECRET=<secret from google>
SECRET=<I generated this uuid>

After rebuilding the containers Danswer works and comes up with "Continue with Google".

When I click in it google gives an error -

Access blocked: Authorization Error

You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.

You can let the app developer know that this app doesn't comply with one or more Google validation rules.
[Learn more about this error](https://developers.google.com/identity/protocols/oauth2/policies#secure-response-handling)
If you are a developer of Danswer, see [error details](https://accounts.google.com/).
Error 400: invalid_request

Error details
Request details: redirect_uri=myurl/auth/oauth/callback 

I'm not sure what to try next.

@gambithunt
Copy link
Author

Figured it out,

WEB_DOMAIN=<domain>

Need to include the full path, like so WEB_DOMAIN=https://domain.com

I had it like this WEB_DOMAIN=domain.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant