Skip to content
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

[PECO-1431] Support Databricks OAuth in Azure #223

Merged
merged 7 commits into from
Jan 29, 2024
Merged

Conversation

jackyhu-db
Copy link
Collaborator

@jackyhu-db jackyhu-db commented Jan 25, 2024

Add optional property useDatabricksOAuthInAzure in the parameter ConnectionOptions of DBSQLClient.connect.

If it is set as true, it will use Databricks native OAuth rather than Azure AD OAuth in both OAuth U2M and M2M flow. If it is not set or set as false, it will still use the existing Azure AD OAuth.

To use this in OAuth M2M flow, the oauthClientId and oauthClientSecret in the ConnectionOptions must be Databricks service principal client ID and secret which can be created by Databricks API or Databricks Account UI.

@jackyhu-db jackyhu-db changed the title Support Databricks OAuth (InHouse) in Azure Support Databricks OAuth in Azure Jan 25, 2024
@kravets-levko
Copy link
Collaborator

@jackyhu-db Is this related to databricks/databricks-sql-python#327 ?

@jackyhu-db
Copy link
Collaborator Author

@jackyhu-db Is this related to databricks/databricks-sql-python#327 ?

@kravets-levko no, it is to support Databrick native OAuth in Azure, the other PR does not cover this.

Signed-off-by: Jacky Hu <jacky.hu@databricks.com>
Signed-off-by: Jacky Hu <jacky.hu@databricks.com>
Signed-off-by: Jacky Hu <jacky.hu@databricks.com>
Signed-off-by: Jacky Hu <jacky.hu@databricks.com>
@jackyhu-db jackyhu-db changed the title Support Databricks OAuth in Azure [PECO-1431] Support Databricks OAuth in Azure Jan 25, 2024
Signed-off-by: Jacky Hu <jacky.hu@databricks.com>
@databricks databricks deleted a comment from github-actions bot Jan 25, 2024
@databricks databricks deleted a comment from github-actions bot Jan 25, 2024
@databricks databricks deleted a comment from codecov-commenter Jan 25, 2024
@databricks databricks deleted a comment from github-actions bot Jan 25, 2024
Signed-off-by: Levko Kravets <levko.ne@gmail.com>
Signed-off-by: Levko Kravets <levko.ne@gmail.com>
@codecov-commenter

This comment was marked as resolved.

@kravets-levko kravets-levko merged commit 5b01d59 into main Jan 29, 2024
8 checks passed
@kravets-levko kravets-levko deleted the PECO-1431 branch January 29, 2024 21:55
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