You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add best-effort --force-refresh support for databricks-cli auth
When the SDK's cached CLI token is stale, try `databricks auth token
--force-refresh` to get a freshly minted token from the IdP. If the
installed CLI is too old to recognise the flag, fall back to regular
`auth token` and remember the capability for future refreshes.
Centralise unknown-flag detection in CliTokenSource._exec_cli_command()
via UnsupportedCliFlagError so the same classifier is reused by both the
legacy --profile fallback and the new --force-refresh downgrade path in
DatabricksCliTokenSource.
See: databricks/cli#4767
Copy file name to clipboardExpand all lines: NEXT_CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
### New Features and Improvements
6
6
* Add support for unified hosts. A single configuration profile can now be used for both account-level and workspace-level operations when the host supports it and both `account_id` and `workspace_id` are available. The `experimental_is_unified_host` flag has been removed; unified host detection is now automatic.
7
7
* Accept `DATABRICKS_OIDC_TOKEN_FILEPATH` environment variable for consistency with other Databricks SDKs (Go, CLI, Terraform). The previous `DATABRICKS_OIDC_TOKEN_FILE` is still supported as an alias.
8
+
* Pass `--force-refresh` to the Databricks CLI `auth token` command so the SDK always receives a freshly minted token instead of a potentially stale cached one. Falls back gracefully on older CLIs that do not support the flag.
0 commit comments