Closed jackyhu-db closed 9 months ago
@jackyhu-db Is this related to databricks/databricks-sql-python#327 ?
@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.
Attention: 1 lines
in your changes are missing coverage. Please review.
Comparison is base (
086f5bb
) 90.41% compared to head (3f4ef7c
) 90.55%. Report is 1 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
...ib/connection/auth/DatabricksOAuth/OAuthManager.ts | 93.75% | 0 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Add optional property
useDatabricksOAuthInAzure
in the parameterConnectionOptions
ofDBSQLClient.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 asfalse
, it will still use the existing Azure AD OAuth.To use this in OAuth M2M flow, the
oauthClientId
andoauthClientSecret
in theConnectionOptions
must be Databricks service principal client ID and secret which can be created by Databricks API or Databricks Account UI.