This question seems like it should be so simple to answer, but after days of research and several dead ends, I can’t seem to get query results out of BigQuery without it insisting on user-based OAuth. Has anyone had any luck with this? I am not using Google AppEngine for my app, it is hosted in EC2. Here is the exact situation:
User wants reporting data -->
Web server makes queries to BigQuery -->
Data is transformed for use in WebApp and returned to User.
Whenever I follow the Google examples, I end up getting a web browser popping up asking for me to select a Google account to use for authentication.
Sorry this is being so challenging to find info on. You’re looking for what’s called Service Accounts which are documented in our Authorizing Access to the BigQuery API using OAuth 2.0 guide.
Here’s an example, using the Python client library, though you’ll want to look at the referenced documentation for info on acquiring the appropriate credentials: