Skip to content

Commit

Permalink
use correct credentials UID and PWD for authentication "sql"
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurcht committed Mar 14, 2024
1 parent 21fad5e commit 6db349c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt/adapters/synapse/synapse_connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ def open(cls, connection: Connection) -> Connection:
elif credentials.windows_login:
con_str.append("trusted_connection=Yes")
elif credentials.authentication == "sql":
con_str.append(f"UID={{{credentials.client_id}}}")
con_str.append(f"PWD={{{credentials.client_secret}}}")
con_str.append(f"UID={{{credentials.UID}}}")
con_str.append(f"PWD={{{credentials.PWD}}}")

# https://docs.microsoft.com/en-us/sql/relational-databases/native-client/features/using-encryption-without-validation?view=sql-server-ver15
assert credentials.encrypt is not None
Expand Down

0 comments on commit 6db349c

Please sign in to comment.