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

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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