databricks-cli/cmd/auth
Pieter Noordhuis c9b4f11947
Update error checks that use the `os` package to use `errors.Is` ()
## Changes

From the [documentation](https://pkg.go.dev/os#IsNotExist) on the
functions in the `os` package:
> This function predates errors.Is. It only supports errors returned by
the os package.
> New code should use errors.Is(err, fs.ErrNotExist).

This issue surfaced while working on using a different `vfs.Path`
implementation that uses errors from the `fs` package. Calls to
`os.IsNotExist` didn't return true for errors that wrap
`fs.ErrNotExist`.

## Tests

n/a
2024-06-03 12:39:36 +00:00
..
README.md Rename bricks -> databricks () 2023-05-16 18:35:39 +02:00
auth.go Add better documentation for the `auth login` command () 2024-04-18 11:55:42 +00:00
describe.go Fixed typo in error template for auth describe () 2024-04-08 11:19:13 +00:00
describe_test.go Added `auth describe` command () 2024-04-03 08:14:04 +00:00
env.go Improve token refresh flow () 2024-05-16 10:22:09 +00:00
login.go Improve token refresh flow () 2024-05-16 10:22:09 +00:00
login_test.go Improve token refresh flow () 2024-05-16 10:22:09 +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 Improve token refresh flow () 2024-05-16 10:22:09 +00:00
token_test.go Improve token refresh flow () 2024-05-16 10:22:09 +00:00

README.md

Auth challenge (happy path)

Simplified description of PKCE implementation:

Token refresh (happy path)