From 1a5216fb82b3087ef0f42fa703ca226e5a8b1835 Mon Sep 17 00:00:00 2001 From: Leslie Lam Date: Mon, 10 Jun 2024 17:10:47 -0400 Subject: [PATCH] Run changie new --- .changes/unreleased/Features-20240610-171026.yaml | 6 ++++++ dbt/adapters/snowflake/connections.py | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Features-20240610-171026.yaml diff --git a/.changes/unreleased/Features-20240610-171026.yaml b/.changes/unreleased/Features-20240610-171026.yaml new file mode 100644 index 000000000..5cc055160 --- /dev/null +++ b/.changes/unreleased/Features-20240610-171026.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Support JWT Authentication +time: 2024-06-10T17:10:26.421463-04:00 +custom: + Author: llam15 + Issue: 1079 726 diff --git a/dbt/adapters/snowflake/connections.py b/dbt/adapters/snowflake/connections.py index 99ecf2948..ba79e03d1 100644 --- a/dbt/adapters/snowflake/connections.py +++ b/dbt/adapters/snowflake/connections.py @@ -117,7 +117,9 @@ def __post_init__(self): if not self.user: # The user attribute is only optional if 'authenticator' is 'jwt' or 'oauth' - warn_or_error(AdapterEventError(base_msg="'user' is a required property.")) + warn_or_error( + AdapterEventError(base_msg="Invalid profile: 'user' is a required property.") + ) self.account = self.account.replace("_", "-")