Link to home
Start Free TrialLog in
Avatar of lapucca
lapucca

asked on

How to remove automatic login to Visual Studio Onlin(Team Froundation Source control) in Visual Studio 2012 and 2013 Ultimate?

I open my VS and if I just click on the Team Explorer tab, it automatically logs me into VS Online's source control of Team Foundation.   How can I get rid of that and have it ask me to log into my VS Online account each time?
Thank you.
Avatar of Randy Downs
Randy Downs
Flag of United States of America image

Try this.


1) In VS 2012 Sign Out of the project on the "Connect to Team Foundation Server" dialog

2) Close the dialog

3) In VS 2012 select View -> Other Windows -> Web Browser

4) In VS 2012 type in the URL project1.visualstudio.com

5) Sign Out of the Team Foundation Service

6) Close Visual Studio

7) Open Visual Studio and go through the "Connect to Team Foundation Server" dialog to login as the correct Account 1 user.
Avatar of lapucca
lapucca

ASKER

I followed your steps but unfortunately it still logs me in automatically.
Do you have some password tool enabled like LastPass? Some of these automatically log you in.
Avatar of lapucca

ASKER

I don't think so.  Where can I find if I have it installed locally on my PC or VS?  LastPass isn't that a browser extension program?  I'm getting login to my VS Online account for TFS code automatically from my local PC's VS 2013 Ultimate.
Thank you.
Yes LastPass is a browser extension. Try this. You could also change the password & it would have to prompt you.

Sometimes you may want to switch to another user to log into your Team Foundation Server (TFS) service. However, you would find that Windows remembers your credentials and log you in automatically. So how to make TFS forget the old credentials so that you can get the chance to enter the user name and password of TFS again? Where is the credentials information stored?
Avatar of lapucca

ASKER

Auto login is happening at my local pc's Visual Studio 2013 Ultimate.  How would LastPass help me?  Anyway, I don't have LastPass installed in my browsers.

Thank you.
I was thinking something like Lastpass was filling in the password for you. The last link any help?
Avatar of lapucca

ASKER

I already check Windows' Credentail Manager, indicated in your 2nd link, and it doesn't list the VS Online login credential.  I'm able to remove xx.visualstudio.com server record from "Connection to Team Foundation -> Servers" dialog and add the server again than I am asked for my credentials.  
But then, it seems to hold on to it without me asking it to remember my credential.  where do I log off each time I'm done so it will ask me again for credential for next time when I open the VS?
Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Randy Downs
Randy Downs
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lapucca

ASKER

No, there is no checkbox for remembering credential.

I am local admin on my pc but system admin images all our pc with certain restrictions and I don't know if that is interfering here.  I'm attaching the screen shot from my credential manager to show you there is nothing in Generic Credential Manager except for my outlook credential.  

This is very odd that the 2nd layer of protection of requiring my Auth code is removed and it won't ask me to log in.  I closed the visual studio , not able to find where to log off from the VS Online.  I reopen VS on my pc, without specifying any projects.  In the Team Explorer tab,I select the blue text that says "Select Team Projects",  The "Connect to Team Foundation Server" dialog pops up.  In the Servers dropdown, it retains my VS Online url, if I just select that then it automatically connects me if I just click on the Connect button it automatically links me to VS Online and Team Explorer is connected.

It's just odd not able to find where it's storing this log in credential.  I guess I have to delete the VS Online url form the Servers Dropdown from  the "Connect to Team Foundation Server" dialog if I want it to always ask for credential.

Thank you.
cm.jpg