Google OAuth Setup not working

Issue Summary

Exception on /oauth/google_callback

Technical details:

Configured Redash in GKE under the Loadbalancer. Also enabled Google oauth as per the default document " How to Create a Google Developers Project"

Get below error:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/flask/app.py”, line 2446, in wsgi_app
response = self.full_dispatch_request()
File “/usr/local/lib/python3.7/site-packages/flask/app.py”, line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/usr/local/lib/python3.7/site-packages/flask_restful/init.py”, line 269, in error_router
return original_handler(e)
File “/usr/local/lib/python3.7/site-packages/flask/app.py”, line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File “/usr/local/lib/python3.7/site-packages/flask/_compat.py”, line 39, in reraise
raise value
File “/usr/local/lib/python3.7/site-packages/flask/app.py”, line 1949, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/local/lib/python3.7/site-packages/flask/app.py”, line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File “/app/redash/authentication/google_oauth.py”, line 87, in authorized
resp = google_remote_app().authorized_response()
File “/usr/local/lib/python3.7/site-packages/flask_oauthlib/client.py”, line 707, in authorized_response
data = self.handle_oauth2_response(args)
File “/usr/local/lib/python3.7/site-packages/flask_oauthlib/client.py”, line 692, in handle_oauth2_response
type=‘invalid_response’, data=data
flask_oauthlib.client.OAuthException: Invalid response from google

Is this required/feasible to get this working: https://redash.io/help/open-source/admin-guide/https-ssl-setup#Using-another-proxy/load-balancer-in-front-of-nginx.

Able to get it worked while trying docker-compose setup with the same Google credentials.