BigQuery 3.0.0 - OAuth2 Authentication
See original GitHub issueBlocked
Environment details
- OS: Windows 10
- Node.js version: 10.15.1
- npm version: 6.4.1
@google-cloud/bigquery
version: 3.0.0
Steps to reproduce
-
Attempting to use an OAuth2 token to authenticate to the BigQuery API version 3.0.0. Successfully can get a valid token using tutorial here: https://github.com/googleapis/google-auth-library-nodejs#oauth2
-
Instantiate BigQuery with token and project param
new BigQuery({ token: validAuthTokenFromAbove, projectId: validProjectId });
-
Attempt to run a query - this will return a “failed to fetch” error. After digging into the code, it’s trying to fall back to Application Default Credentials. It seems the token property is being ignored.
*** If I downgrade BigQuery to v 1.3.0 everything works fine! I’ll be using this for now until this gets resolved.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Authorizing API requests | BigQuery - Google Cloud
The BigQuery API uses OAuth 2.0 access tokens or JSON Web Tokens (JWTs) to authorize requests. These tokens grant temporary access to an...
Read more >Authorizing Access to the Google BigQuery API using OAuth 2.0
The BigQuery API requires all requests to be authorized by an authenticated user or a service account. This guide describes how to authorize...
Read more >Oauth2.0 for Google Big Query - Stack Overflow
Yes, if you want to access the BigQuery API, you need to authenticate using OAuth 2.0. https://developers.google.com/bigquery/authorization.
Read more >Google BigQuery | Tray.io Documentation
Google BigQuery is Google's serverless, highly scalable enterprise data warehouse and is ... "auth_uri": "https://accounts.google.com/o/oauth2/auth",.
Read more >bigrquery: An Interface to Google's 'BigQuery' 'API'
Description Easily talk to Google's 'BigQuery' database from R. ... over auth, use bq_auth_configure() to bring your own OAuth app or API ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Tagging in @feywind as an FYI.
Fixed by #566 https://cloud.google.com/bigquery/docs/authentication/end-user-installed