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

Make u2m authentication work with new CLI #150

Merged
merged 1 commit into from
Jun 7, 2023
Merged

Make u2m authentication work with new CLI #150

merged 1 commit into from
Jun 7, 2023

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Jun 7, 2023

Changes

Acquire token by calling databricks CLI. Incorporate detection to see if the path resolves to the Python CLI (< 0.100) or the new CLI (>= 0.100). This detection looks at the binary size to determine which one we're working with.

Tests

Performed manual tests to confirm this credential provider works, even if the legacy CLI is present in $PATH before the new CLI (by installing it in a venv and confirming that the SDK still uses the CLI credential provider).

  • make test run locally
  • make fmt applied
  • relevant integration tests applied

@pietern pietern requested review from nfx and mgyucht June 7, 2023 09:56
@pietern pietern force-pushed the databricks-cli-auth branch from d1ae70e to f512c4a Compare June 7, 2023 09:56
@nfx nfx merged commit 038e48a into main Jun 7, 2023
@nfx nfx deleted the databricks-cli-auth branch June 7, 2023 10:10
@nfx nfx mentioned this pull request Jun 9, 2023
nfx added a commit that referenced this pull request Jun 9, 2023
# Version changelog

## 0.1.9

* Added new services from OpenAPI spec
([#145](#145),
[#159](#159)).
* Added consistent usage of the `upload(path, IO)` and `download(path)
-> IO` across file-related operations
([#148](#148)).
* Added Databricks Metadata Service credential provider
([#139](#139),
[#130](#130)).
* Added exposing runtime credential provider without changing user
namespace
([#140](#140)).
* Added a check for `is not None` for primitive fields in `as_dict()`
([#147](#147)).
* Fixed bug related to boolean flags and convert `True` to `true` in
query strings
([#156](#156)).
* Fixed generation of external entities
([#146](#146)).
* Make u2m authentication work with new CLI
([#150](#150)).
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