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

Support BigQuery oauth using a bearer token #2344

Closed
drewbanin opened this issue Apr 20, 2020 · 0 comments · Fixed by #2805
Closed

Support BigQuery oauth using a bearer token #2344

drewbanin opened this issue Apr 20, 2020 · 0 comments · Fixed by #2805
Labels
bigquery enhancement New feature or request

Comments

@drewbanin
Copy link
Contributor

drewbanin commented Apr 20, 2020

Describe the feature

dbt Core should support BigQuery targets configured directly with a Bearer token for OAuth authentication. This will enable OAuth authentication without requiring manual gcloud authorization steps to log into GCP.

This feature should look similar to the Snowflake OAuth flow implemented in #2050. Let's create a new auth method called bearer which accepts the following fields:

  • client_id
  • client_secret
  • refresh_token
  • token_uri

Given these credentials, dbt should be able to mint new access tokens that are used to authorize BigQuery queries.

Who will this benefit?

Services that invoke dbt on behalf of a user (ie. where Service Account auth isn't desirable). We plan on leveraging this functionality in dbt Cloud to support OAuth dev creds for BigQuery credentials, but anyone should be able to use this API too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bigquery enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant