Hi I am trying to deploy an app that uses Big Query API. The app builds the
OAuth2 decorator to pass through to the Biq Query API like this:
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)
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:
Error: redirect_uri_mismatch
Request Details
- 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
But looking at my API Console, I find that the redirect uri
https://terradata-test.appspot.com/oauth2callback is in my list or redirect
uri's:
Redirect URIs:
https://terradata-test.appspot.com/oauth2callback
http://terradata-test.appspot.com/oauth2callback
http://1.terradata-test.appspot.com/oauth2callback
https://code.google.com/oauthplayground
I'm not sure what I'm missing to fix this problem? Is there any more code
I should put to clarify the situation? Any input would be greatly
appreciated. Thanks.
Sincerely,
Shan
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/MKVSR7ndi48J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.