Skip to content

[Bug] redirect_uri not registered for OAuth application 'databricks-cli' #3416

@bgrams

Description

@bgrams

Describe the issue

u2m auth fails due to a port number mismatch between the local redirect server and the URI registered for the Databricks CLI app connection in the account. This change was introduced by databricks-sdk-go v0.77.0 which now uses random open port selection for this auth method, while the app connection always expects port 8020.

Image

Steps to reproduce the behavior

Please list the steps required to reproduce the issue, for example:

  1. Run databricks auth login

Expected Behavior

Login succeeded

Actual Behavior

{
  "error_description": "redirect_uri 'http://127.0.0.1:53890' not registered for OAuth application 'databricks-cli'",
  "error": "invalid request"
}

OS and CLI version

Databricks CLI v0.264.0

Is this a regression?

Yes, this is a breaking change introduced in 0.264.0 via the SDK upgrade

Debug Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingCLICLI related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions