azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

Support azd logout

Open savannahostrowski opened this issue 3 years ago • 5 comments

If we support azd login, we should also probably support azd logout.

I can imagine a use case where a developer would want to switch Azure accounts (e.g. from personal to work or vice versa) where this would be helpful.

As it stands right now, I don't think there's anyway to logout via azd or az?

savannahostrowski avatar Jun 14 '22 20:06 savannahostrowski

Dupe Azure/azure-dev-pr#1039

jongio avatar Jun 14 '22 20:06 jongio

As it stands right now, I don't think there's anyway to logout via azd or az?

Since we piggyback on az today for authentication, you can use az logout to log out of azd but it is a little confusing for sure.

@savannahostrowski If we add an azd logout gesture, the implementation will just call az logout. Do you think users will find that surprising?

ellismg avatar Jun 14 '22 20:06 ellismg

Oops my bad for not checking that this issue already existed!

az logout unfortunately does not print "Logged out" once the command executes so that's a little unfortunate. If we were to piggyback off of that command, I think that's fine so long as we can print something to the terminal that indicates whether or not the action was successful.

savannahostrowski avatar Jun 14 '22 20:06 savannahostrowski

az logout unfortunately does not print "Logged out" once the command executes so that's a little unfortunate. If we were to piggyback off of that command, I think that's fine so long as we can print something to the terminal that indicates whether or not the action was successful.

We should be able to.

ellismg avatar Jun 14 '22 21:06 ellismg

@wbreza I assume this is relevant to your work to remove the az dependency + as you think about auth on the azd side. Does this make sense to assign to you?

savannahostrowski avatar Oct 11 '22 20:10 savannahostrowski

@rajeshkamal5050 Let's make sure that this is considered as we work through auth

savannahostrowski avatar Nov 14 '22 20:11 savannahostrowski

We now have azd logout - it was added with our auth support

ellismg avatar Nov 15 '22 23:11 ellismg