From 0c09fdf0d705d9a8813f49ee421e8307d1b4a324 Mon Sep 17 00:00:00 2001 From: Anders Swanson Date: Wed, 11 Oct 2023 09:46:01 -0400 Subject: [PATCH] support ADSP --- CHANGELOG.md | 5 +++++ dbt/adapters/fabric/fabric_connection_manager.py | 3 +++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33e708e..4853f24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +### v1.6.1 + +## Behind the scenes + +* Add explicit support for `ActiveDirectoryServicePrincipal` ### v1.6.0 ## Features diff --git a/dbt/adapters/fabric/fabric_connection_manager.py b/dbt/adapters/fabric/fabric_connection_manager.py index d045e87..1d655d2 100644 --- a/dbt/adapters/fabric/fabric_connection_manager.py +++ b/dbt/adapters/fabric/fabric_connection_manager.py @@ -347,6 +347,9 @@ def open(cls, connection: Connection) -> Connection: if credentials.authentication == "ActiveDirectoryPassword": con_str.append(f"UID={{{credentials.UID}}}") con_str.append(f"PWD={{{credentials.PWD}}}") + if credentials.authentication == "ActiveDirectoryServicePrincipal": + con_str.append(f"UID={{{credentials.client_id}}}") + con_str.append(f"PWD={{{credentials.client_secret}}}") elif credentials.authentication == "ActiveDirectoryInteractive": con_str.append(f"UID={{{credentials.UID}}}")