Use CLI's auth token command in databricks-cli auth#1428
Merged
tejaskochar-db merged 11 commits intomainfrom Jan 29, 2026
Merged
Use CLI's auth token command in databricks-cli auth#1428tejaskochar-db merged 11 commits intomainfrom
tejaskochar-db merged 11 commits intomainfrom
Conversation
Contributor
Author
Tested it manually, it works. |
|
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
hectorcast-db
approved these changes
Jan 29, 2026
tejaskochar-db
added a commit
to databricks/cli
that referenced
this pull request
Feb 12, 2026
## Changes Update the `auth profiles` command to always load the value of the `DATABRICKS_CLI_PATH` environment variable as it otherwise does not load any environment variables. ## Why databricks/databricks-sdk-go#1428 changed the `databricks-cli` auth type in the Go SDK to use the CLI to fetch tokens instead of touching the U2M token store itself. Because of this acceptance tests break when we try to bump the go sdk version in the CLI, as the CLI was not accessible in the test environment. This PR makes it accessible. ## Tests auth login acceptance tests should pass --------- Co-authored-by: Denis Bilenko <denis.bilenko@databricks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Refactor databricks-cli auth to use the CLI's auth token command to fetch tokens instead of fetching them directly from the token store.
The command checks the isUnifiedHost flag and passes arguments in the call to
auth tokenappropriately.Why
This change results in all the SDKs using a consistent interface for accessing tokens for this auth type as the Java and Python SDKs were already doing this. It also makes the token store an implementation detail of the CLI, making future re-factorings a lot simpler.
How is this tested?
unit tests
NO_CHANGELOG=true