databricks-sdk-py icon indicating copy to clipboard operation
databricks-sdk-py copied to clipboard

Fixed AccountClient U2M OAuth2 auth when using `external-browser` auth type

Open green2k opened this issue 1 year ago • 0 comments

Instantiating AccountClient like this:

from databricks.sdk import AccountClient

dac = AccountClient(
    host="https://accounts.cloud.databricks.com",
    account_id="<DATABRICKS_ACCOUNT_ID>",
    auth_type="external-browser",
)

leads to an error:

Error code: 400

Message: unsupported_response_type.

Error code explanation: 400 - Unsupported response type: response_type=code response_mode=query.

image

Changes

OIDC endpoints now contains the information about the Databricks Account ID.

Tests

  • [ ] make test run locally
  • [ ] make fmt applied
  • [ ] relevant integration tests applied

green2k avatar Aug 06 '24 10:08 green2k