Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants