Skip to content

[PECO-1414] Support Databricks native OAuth in Azure #351

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

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

jackyhu-db
Copy link
Collaborator

@jackyhu-db jackyhu-db commented Feb 11, 2024

Support Databricks native OAuth in Azure and use it as the default OAuth U2M provider/flow in Azure.

Databricks now supports native OAuth U2M (user-to-machine) flow in Azure. With databricks-sql-python (Client ID: databricks-sql-python) being enabled by default in every account, we can use Databricks native OAuth as the default OAuth method in Azure. If your application still prefers to use Microsoft Azure AD for authentication, you can simply set auth_type to azure-oauth, as shown below.

connection = sql.connect(
  server_hostname=host,
  http_path=http_path,
 auth_type="azure-oauth")

Signed-off-by: Jacky Hu <[email protected]>
@jackyhu-db jackyhu-db changed the title [PECO-1414] Support Databricks InHouse OAuth in Azure [PECO-1414] Support Databricks native OAuth in Azure Feb 11, 2024
@jackyhu-db jackyhu-db merged commit 8319854 into databricks:main Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants