Skip to content

Fixed AccountClient U2M OAuth2 auth when using external-browser auth type#720

Open
green2k wants to merge 2 commits intodatabricks:mainfrom
green2k:fix/account-oauth-auth-external-browser
Open

Fixed AccountClient U2M OAuth2 auth when using external-browser auth type#720
green2k wants to merge 2 commits intodatabricks:mainfrom
green2k:fix/account-oauth-auth-external-browser

Conversation

@green2k
Copy link

@green2k green2k commented Aug 6, 2024

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

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.

2 participants