Note that there are some explanatory texts on larger screens.

plurals
  1. POError: redirect_uri_mismatch with a google app using the Big Query API?
    primarykey
    data
    text
    <p>Hi so I have been trying to make an app that uses a Biq Query API.</p> <p>All the authentication and client secrets for OAuth2 work fine when I load the app locally, however after deploying the code I get the following error:</p> <p>Error: redirect_uri_mismatch Request Details</p> <pre><code>scope=https://www.googleapis.com/auth/bigquery response_type=code redirect_uri=https://terradata-test.appspot.com/oauth2callback access_type=offline state=https://terradata-test.appspot.com/ display=page client_id=660103924069.apps.googleusercontent.com </code></pre> <p>But looking at my API Console, I find that the redirect uri <a href="https://terradata-test.appspot.com/oauth2callback" rel="nofollow">https://terradata-test.appspot.com/oauth2callback</a> is in my list or redirect uri's:</p> <blockquote> <p>Redirect URIs:</p> <p>1.https://terradata-test.appspot.com/oauth2callback</p> <p>2.http://terradata-test.appspot.com/oauth2callback</p> <p>3.http://1.terradata-test.appspot.com/oauth2callback</p> <p>4.https://code.google.com/oauthplayground</p> </blockquote> <p>I'm not sure what I'm missing to fix this problem? Why is there a redirect error with a uri that is listed in the API console?</p> <p>The app builds the OAuth2 decorator to pass through to the Biq Query API like this: </p> <pre><code>CLIENT_SECRETS = os.path.join(os.path.dirname(__file__), 'client_secrets.json') decorator = oauth2decorator_from_clientsecrets( CLIENT_SECRETS, 'https://www.googleapis.com/auth/bigquery') http = httplib2.Http(memcache) bq = bqclient.BigQueryClient(http, decorator) </code></pre> <p>Is there any more code I should put to clarify the situation? Any input would be greatly appreciated. Thanks so much!</p> <p>Shan</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload