-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Issue with OAuth redirect URI: http vs https mismatch #4048
Comments
I had a similar issue (https is required, got http -> oauth failed). |
@alexwennerberg sounds like the nginx doesn't pass the correct protocol to the Python code. Can you try changing line 61 in nginx.conf from:
to:
|
@arikfr Thanks! After I did that, it got past the first error, but I encountered another error after attempting to authenticate: Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. This is the same as the OAuthException: Invalid response from google error I mentioned above |
This issue had to do with me copy/pasting the client ID incorrectly. Issue was resolved and unrelated to Redash. |
Thanks master! |
This is not related to the issue, but I assume that the issue author or followers might have SAML enabled for their deployment and should be aware of the following Security Advisory: #5961. This affects all Redash versions and should be patched immediately. |
Issue Summary
I'm following this guide: https://redash.io/help/open-source/admin-guide/google-developer-account-setup
To set up Redash on my server, which is running on docker compose via the Google Compute Engine instances that Redash provides on their website. I configured HTTPS according to this guide: https://gist.github.com/arikfr/64c9ff8d2f2b703d4e44fe9e45a7730e and I am setting up OAuth through Google
Steps to Reproduce
I received this error:
My suspicion is that the redirect URI that redash provides is http, whereas the redirect URI that the Redash guide has my type into Google is https. This error vanished after I changed the authorized URL for my OAuth Client to the http url, however I received a different error, an Internal Server Error in the Redash app and, in the logs,
OAuthException: Invalid response from google
. Not sure if this is an unrelated issue, but this http/https change is inconsistent with the Google OAuth docs at the very least.Technical details:
The text was updated successfully, but these errors were encountered: