Visual Studio Work Account Login Re-Enter Loop

Viewed 368

In VS2017, VS2019, and VS2022 our developers have been having significant issues with Visual Studio logging in with their company emails (Office 365 accounts - Visual Studio access granted that way).

This is encountered in both the Visual Studio Account Settings pane and the Azure New Publish Profile window. They successfully log in (uname, pword, and 2FA), and then within a second or two they are asked to re-enter credentials. We have seen this happen frequently over the past year or so over multiple VS versions (both before and after fresh installs), multiple computers (both before and after a complete windows wipe and reinstall), and with every developer on staff. (I personally have seen it happen upwards of 8 times in a row before the program decided to keep it).

Does anybody know what is going on with this, and if there is any way to stop (or even mitigate - we'll take what we can get at this point) this from happening?

Example "Re-Enter Credentials" screen shot

1 Answers

Do the accounts have access to multiple tenants which also have 2FA? From my experience the re-enter credentials loop is to cycle through tenants which enforce 2FA. If you go to account settings and amend the 'Apply filter...' to just the tenant you are working on then it should only ask for the credentials to be validated once.

Related