cli icon indicating copy to clipboard operation
cli copied to clipboard

[Feature] Add `logout` command

Open alexott opened this issue 1 year ago • 5 comments

It would be really useful to add the logout command as a counterpart for the log in command. This command should remove the refresh token for a given profile. Azure CLI has similar functionality.

alexott avatar Jul 31 '24 11:07 alexott

Exactly, really i don't know how to logout from databricks when i open a databricks cli session

mohsas avatar Nov 26 '24 08:11 mohsas

@mohsas what's your use case for logout? you can just login in directly to different user if you need without the logout

andrewnester avatar Nov 26 '24 15:11 andrewnester

+1 on the logout feature

similarly when you log on netflix in a hotel tv, when you leave your stay you'll want to log off from that device so you can keep your account secure

it should not depend on logging another user on refresh tokens are sensitive data and it's a good idea not leaving some lying around

larruda avatar Dec 18 '24 00:12 larruda

+1 on the logout.

I am trying to switch authentication from a personal user (authenticated with databricks-cli) and to a service principal using environment variables. Getting error when running databricks bundle init.

Error: validate: more than one authorization method configured: azure and oauth.

marloeuyjr avatar Feb 14 '25 14:02 marloeuyjr

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

github-actions[bot] avatar Apr 16 '25 00:04 github-actions[bot]