-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for azure authentication mechanisms. #28
Comments
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
I'm a big supported of this feature, and I'd love to help out, as I originally "assisted" with adding AAD auth to dbt-sqlserver. 👀: @JCZuurmond |
Awesome to hear that Anders! At least for Databricks it would be pretty straight forward if we had an easy way to pull in all the Auth code from dbt-sqlserver. Whichever AAD auth mode the user selects eventually they get a token back, that token would just be used in place of the password with the Databricks connection and if the workspace is AAD enabled the connection will succeed. |
in dbt-sqlserver, we're doing exactly what you say. basically use the Azure Python SDK's For more, info see our guide on how to authenticate using AAD and dbt. The hardest pill for me to swallow is drawing a dependency on the Azure CLI. As Scott Henderson writes:
|
@ueshin this issue is almost a year old now. It seems like the most bitter pill to swallow is the Azure CLI (yikes). |
For those authenticating using Azure, you can use Az CLI to get a valid token and then use that in the regular config:
Then in your profiles.yml you can authenticate using the stored token: |
But as discussed above, it would be nicer to use the azure-identity package to retrieve a token automatically so that you can also use this in setups with managed identity, service principals etc. without having to use the CLI. |
Support for Azure AD OAuth has been added on #327 |
Just a note on @sdebruyn's answer (very useful, thanks)
also works, rather than hopping over to |
Describe the feature
Beyond simple PAT tokens supporting some of Azure AAD based authentication would great.
Additional context
dbt-sqlserver is a good example of how to get vaild auth tokens, and databricks-sql-connector already supports taking auth_token arguments.
Who will this benefit?
Users trying to use AAD based SSO or other features.
The text was updated successfully, but these errors were encountered: