Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

No ability to use GCP access tokens instead of credentials #14

Open
ntdesilv opened this issue May 8, 2020 · 0 comments
Open

No ability to use GCP access tokens instead of credentials #14

ntdesilv opened this issue May 8, 2020 · 0 comments

Comments

@ntdesilv
Copy link

ntdesilv commented May 8, 2020

Hey, peeps!

It would be great to enable authentication to BigQuery using an access token rather than supplying credentials. Looks like this is available in the beta system at Google Cloud Dataproc:

Another alternative to passing the credentials, is to pass the access token used for authenticating the API calls to the Google Cloud Platform APIs. You can get the access token by running gcloud auth application-default print-access-token.
spark.read.format("bigquery").option("gcpAccessToken", "<acccess-token>")
or
spark.conf.set("gcpAccessToken", "<access-token>")

I'll start investigating and see if I can add a PR to this to enable this feature. Bit of a Scala rookie, though!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants