Closed llam15 closed 5 months ago
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the dbt-snowflake contributing guide.
LGTM, but I'll let someone from the adapters team give the approval
resolves #1079 resolves #726 ~docs dbt-labs/docs.getdbt.com/#~
Problem
dbt-snowflake
adapter only supports Snowflake OAuth, where the Client ID/Secret belong to a Snowflake OAuth Client, and thetoken
property is expected to be a refresh token, and the adapter will automatically perform the refresh token flow with it.Solution
authenticator
type,jwt
authenticator
is set tojwt
, thetoken
attribute will be treated as a plain JWT token, and passed directly into the snowflake connect method.Checklist
Manual Testing
Spun up a dbt project and validated that
dbt run
,dbt test
, anddbt build
pass with the following profile:https://github.com/dbt-labs/dbt-snowflake/assets/10479740/99ef2eb2-70cf-4f41-979f-a2885f557b77
https://github.com/dbt-labs/dbt-snowflake/assets/10479740/7e0c3763-ee44-481c-92b3-d456bcd2089b