question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BigQuery 3.0.0 - OAuth2 Authentication

See original GitHub issue

Blocked

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

  1. 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

  2. Instantiate BigQuery with token and project param new BigQuery({ token: validAuthTokenFromAbove, projectId: validProjectId });

  3. 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:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
meredithslotacommented, Dec 20, 2019

Tagging in @feywind as an FYI.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found