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}}}")