nodejs-bigquery icon indicating copy to clipboard operation
nodejs-bigquery copied to clipboard

BigQuery Feature: Support key less authentication

Open samuellundberg opened this issue 4 years ago • 2 comments

We are using Workload Identity Federation for an key less authentication to a GCP Service Account using ExternalAccountClient from 'google-auth-library' .

All provided samples on authenticating to BigQuery include properties from a key file or path to a key file, which we do not have in our key less solution.

We have seen the possibility to provide an Oauth token in the Big Query options. But when we try to provide a token we get "Error: Could not load the default credentials."

So we would like an example of how authenticate to BigQuery using an Oauth token.

samuellundberg avatar Oct 14 '21 13:10 samuellundberg

To clarify, @samuellundberg - when you're using keyless auth, are you setting up a workload identity pool for your external service accounts and then generating a config file? (Here's a blog post explaining the process!). At that point, you can set your ADC to that filepath instead of the classic key-file. I'm happy to add an example here (and probably at least in the code), but just wanted to make sure we're on the same page!

loferris avatar Aug 10 '22 17:08 loferris

I've changed priority level on this, and happy to re-engage when we have clarification!

loferris avatar Aug 17 '22 18:08 loferris