Skip to content

Commit

Permalink
adding service principal alias for ActiveDirectoryServicePrincipal au…
Browse files Browse the repository at this point in the history
…th mode
  • Loading branch information
prdpsvs committed Nov 28, 2023
1 parent cf36880 commit 66d5fe7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### v1.6.2

* Allowing users to provide "ServicePrincipal" as an authentication mode. Adapter will treat ServicePrincipal as ActiveDirectoryServicePrincipal authentication mode.

### v1.6.1

## Features
Expand Down
2 changes: 1 addition & 1 deletion dbt/adapters/fabric/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "1.6.1"
version = "1.6.2"
3 changes: 3 additions & 0 deletions dbt/adapters/fabric/fabric_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def _connection_keys(self):
if self.windows_login is True:
self.authentication = "Windows Login"

if self.authentication.lower().strip() == "serviceprincipal":
self.authentication = "ActiveDirectoryServicePrincipal"

return (
"server",
"database",
Expand Down

0 comments on commit 66d5fe7

Please sign in to comment.