OAuthException: Invalid response from google

Issue Summary

I’m deploying Redash on Compute Engine and following this guide exactly to set up Oauth:


I have https setup according to this guide: https://gist.github.com/arikfr/64c9ff8d2f2b703d4e44fe9e45a7730e

With this change made:

changing line 61 in nginx.conf from:

proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;


proxy_set_header X-Forwarded-Proto $scheme;

I am using a subdomain, y.[domain].com, and I have [domain].com authorized on my oauth client screen on Google. When I try to log in via oauth, after I click “Login with Google” and then click my account, I get this error:

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.

And when I check the logs, I see an OAuthException: Invalid response from google error.

Technical details:

Technical details:

Redash Version: 5.0.2
Browser/OS: Firefox / Debian 10
How did you install Redash: See above

Something with your header-rewrites is broken before the response ever hits the Redash application. Have you said MULTI_ORG=true as suggested in this comment?

Thanks for your response! I have not set MULTI_ORG=true, so I don’t think that is the issue.

Turns out the issue was the client ID was copy/pasted incorrectly. No issue with redash