google-app-engine


Blank Page after granting OAuth2 permission in BigQuery GAE Sample


I've been trying to play with the BigQuery GAE sample.
All works well until after I've granted the app permission to access the BigQuery API, at the consent page.
After that a blank page is displayed, with 'state' and 'code' parameters being part of the quesry string.
Everything gets stuck here, what must I do next?
Instead of doing the oauth2 dance, you could use the appengine.AppAssertionCredentials, to get a signed token from within the app:
import httplib2
from apiclient import discovery
from google.appengine.api import app_identity
from oauth2client import appengine
PROJECT_ID = app_identity.get_application_id()
query = {'query':'SELECT word,count(word) AS count FROM publicdata:samples.shakespeare GROUP BY word limit 3;'}
service = discovery.build(
"bigquery", "v2", http=appengine.AppAssertionCredentials(
scope='https://www.googleapis.com/auth/bigquery').authorize(
httplib2.Http()))
jobRunner = service.jobs().query(projectId=PROJECT_ID, body=query)
print jobRunner.execute()
For this to work you need to add #developer.gserviceaccount.com to the team as a viewer on https://cloud.google.com/console.

Related Links

App Engine Search: How can I search multiple search indexes in parallel?
Task Queue in GAE JAVA - Battle Engine
What is the clear difference of a Ancestor Key and a Parent Key?
Calling Google Apps Script as webapp from AppEngine returns 405
How to tell whether it is a “development server”?
Why I got over quota error ? google app engine
If I use ObjectifyFilter I get error
Is there an API for creating google cloud platform credentials?
How to make programmatic access to an appengine application that is secure and authenticated
What App Engine datastore caching strategy will give complete cache consistency?
Google App Engine : High CPU Utilization
appengine cloud storage compile error in demo project
Issue with using the Google Datastore query console
How can I run `gcloud preview app setup-managed-vms` without this error?
Appengine unit test fail with Objectify - No Class registered
What is the name of the database or table?

Categories

HOME
sonarqube
phpmyadmin
pascal
obfuscation
jelastic
opendj
aws-cli
cakephp-3.4
google-admin-sdk
trac
opengl-3
pkcs#11
elasticsearch-5
okhttp
heap
emoji
x-cart
endpoint
selenium-ide
renjin
symmetricds
azure-powershell
linear-algebra
searchview
connector
gmm
oledb
visual-glitch
undertow
ember-cli
joptionpane
hta
scriptella
asymptotic-complexity
has-and-belongs-to-many
ms-access-2003
8051
datastax-enterprise-graph
subclass
iis-express
anki
quickfixj
glib
latitude-longitude
openerp-7
xdocreport
css-position
linq-to-objects
unordered-map
vmware-fusion
android-checkbox
fwrite
dynamic-linq
opennms
mschart
identification
trojan
aquamacs
stdmap
yii2-user
vibrate
change-tracking
rocks
uicolor
freepbx
stream-processing
mediametadataretriever
riot
dbamp
findfirst
exim4
contentcontrol
mobiledoc-kit
poppler
cgi-bin
nutiteq
teamcity-9.1
adehabitathr
mass-assignment
execve
beatsmusic
browserify-shim
crowd
webfinger
formview
nsmenu
raygun
cuba
buffering
spring-remoting
android-framework
renderer
file-not-found
fpdi
git-repo
spring-3
sphinxql
ebay-lms
tlf
twisted.web
patricia-trie
sentestingkit
subproject
inkcanvas
azman
convention
u2netdk
photolibrary
presentation-layer
interprocess
message-passing
web-garden
cfwindow
strtod
tui
visualj#
leader

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile