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

[CT-2138] Support to OAUTH snowflake connection for dbt-core #474

Closed
3 tasks done
gsugumar opened this issue Feb 17, 2023 · 1 comment
Closed
3 tasks done

[CT-2138] Support to OAUTH snowflake connection for dbt-core #474

gsugumar opened this issue Feb 17, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@gsugumar
Copy link

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt-snowflake functionality, rather than a Big Idea better suited to a discussion

Describe the feature

support OAUTH snowflake connection for dbt-core

Describe alternatives you've considered

No response

Who will this benefit?

No response

Are you interested in contributing this feature?

No response

Anything else?

No response

@gsugumar gsugumar added enhancement New feature or request triage labels Feb 17, 2023
@github-actions github-actions bot changed the title Support to OAUTH snowflake connection for dbt-core [CT-2138] Support to OAUTH snowflake connection for dbt-core Feb 17, 2023
@dbeatty10 dbeatty10 self-assigned this Feb 17, 2023
@dbeatty10
Copy link
Contributor

Thanks for reaching out @gsugumar !

You're in luck -- we already have support for OAuth connections in dbt-snowflake (implemented in dbt-labs/dbt-core#2069)!

However, you might find that one of the methods listed here is easier to set up and use.

It's a bit complex to set up all the pieces, but here's the relevant portion of your profiles.yml to use OAuth:

my-snowflake-db:
  target: dev
  outputs:
    dev:
      type: snowflake
      account: <ACCOUNT_ID>

      # Here's the specific pieces to configure OAuth 
      authenticator: oauth
      oauth_client_id: <OAUTH_CLIENT_ID>
      oauth_client_secret: <OAUTH_CLIENT_ID>
      token: <OAUTH_REFRESH_TOKEN>

Note: token is a refresh token rather than an access token.

This method assumes you have followed a guide like this to generate a refresh token. I also found this to be useful, especially the troubleshooting section.

Closing as a duplicate of dbt-labs/dbt-core#2050.

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

No branches or pull requests

2 participants