cli icon indicating copy to clipboard operation
cli copied to clipboard

Re-run `databricks auth login` when refresh token is expired

Open nfx opened this issue 2 years ago • 2 comments

Error: default auth: databricks-cli: cannot get access token: Error: token refresh: oauth2: "invalid_request" "Refresh token is invalid"

In this scenario, we should probably pop-up the U2M flow again to allow them to reauthenticate, then repeat the request.

nfx avatar Aug 15 '23 17:08 nfx

Can you give more context on the expected behavior?

mgyucht avatar Aug 17 '23 14:08 mgyucht

I experence the same error when using 'az login' to authenticate against Azure, then use the Databricks CLI. I have three Databricks Workspaces, two are succesfull, but one keeps failing with:

Error: default auth: databricks-cli: cannot get access token: Error: token refresh: oauth2: "invalid_request" "Refresh token is invalid"

ferdyh avatar Apr 04 '24 09:04 ferdyh