databricks-cli/cmd/auth
shreyas-goenka c19c8bbbf7
Add library to store cmd-exec-id in context ()
## Why
The command execution ID is a UUID that should be initialized once, and
then have a consistent read value for the duration of the command.

As we start emitting telemetry events, we also want to emit the command
execution ID in the telemetry payload. This library helps consolidate
all reads to the `cmd-exec-id` value, and ensures there's only one write
for the UUID.

relevant comment:
https://github.com/databricks/cli/pull/2432#discussion_r1982884235

## Tests
Unit tests.
2025-03-10 13:11:24 +00:00
..
testdata Fix host resolution order in `auth login` () 2024-08-14 13:01:00 +00:00
README.md Rename bricks -> databricks () 2023-05-16 18:35:39 +02:00
auth.go Enable perfsprint linter and apply autofix () 2025-01-07 10:49:23 +00:00
describe.go Move `WorkspaceClient` to `libs/command` () 2025-03-07 16:47:19 +00:00
describe_test.go Move `WorkspaceClient` to `libs/command` () 2025-03-07 16:47:19 +00:00
env.go Enable perfsprint linter and apply autofix () 2025-01-07 10:49:23 +00:00
login.go Enable perfsprint linter and apply autofix () 2025-01-07 10:49:23 +00:00
login_test.go Fix host resolution order in `auth login` () 2024-08-14 13:01:00 +00:00
profiles.go Update error checks that use the `os` package to use `errors.Is` () 2024-06-03 12:39:36 +00:00
profiles_test.go Pass `DATABRICKS_CONFIG_FILE` env var to sdk config during `auth profiles` () 2024-04-24 09:18:13 +00:00
token.go Add doc string for the `auth token` command () 2025-02-07 11:51:37 +00:00
token_test.go Add library to store cmd-exec-id in context () 2025-03-10 13:11:24 +00:00

README.md

Auth challenge (happy path)

Simplified description of PKCE implementation:

Token refresh (happy path)