Specify Google OAuth Redirect URL Manually

Background: We are self-hosting Redash in our internal network. Meanwhile, we’d like to use our Google OAuth for accounts authenticating. To enable callback from Google OAuth, we’d like to provide a special white list IP as the callback endpoint.

Issue we encountered: Redash seems to be unable to change the callback URL, always to be http://{REDASH_HOST}/oauth/google_callback . It’s not flexible enough for our situation.

What we expect: Provide some kind of env option like REDASH_GOOGLE_OAUTH_CALLBACK , and use this value when defined.