Get credentials of active Team Explorer from Addin VS 2008 - tfs

I have VS 2008 and Team Explorer, and TFS.
I open VS 2008 using a local administrator (MACHINE\admin). I open Team Explorer to connect to TFS Server using domain user (DOMAIN\user). The login dialog appears when I connect to TFS in Team Explorer (I put login and password).
Now, in my addin, programatically I want connect to TFS.
How can I get the credentials (that I introduce in login dialog in Team Explorer) to connect to TFS ?
Reference:
How to get the active Team Foundation Server and Project from an Add-In
http://blogs.msdn.com/b/hippietim/archive/2006/03/29/563988.aspx

Have you tried:
System.Net.NetworkCredential credential = (System.Net.NetworkCredential)System.Net.CredentialCache.DefaultCredentials;
Aside from that, you could setup an account that the addin could run under using :
new NetworkCredential(username,password,domain)
System.Net.CredentialCache.DefaultCredentials may pass back the admin creds though. In which case, creating an account for the addin to run under would still be an option.

Related

Where does the TFS Office integration excel plugin store the server names

Where does the TFS Office integration excel plugin store the server names so that they are persistent the next time the user logs in. Right now when a user logs in with a Citrix desktop the settings for the server name are not persisting. The Citrix team has asked me for the location where this information is stored.
The server is configured in the Team tab in Excel. And its name is auto generated by the TFS excel plugin according to the server configured. If it is not authorized to access the TFS from the Excel in the citrix desktop, the server name will not be displayed.
You can try add the TFS in the Excel in the citrix desktop. See below steps:
Team tab-->Configure-->Server Connection-->Ok to reconnect document to server instance-->
Servers-->Add. See below screenshot.
Check this document for more information.

How to connect Visual Studio 2019 to TFS server

I have TFS 2018. I'm trying to connect visual studio 2019. I can already use tfs via web browser. I can log in and everything is fine. But when I try to connect through vs, I can't get authorized. I get
Server 'https://Myserver:8080/tfs' was not added. TF30063. You are not authorized to access https://myserver:8080/tfs
I researched the error code and tried all the fixes including deleting the windows credentials, running vs as admin and others. Like I said, I can log in via my web browser with no problem.
When I try to connect to project, It has my Microsoft account. I enter the above url and I'm prompted for my windows login (same for the browser) and I keep getting the error. I thought maybe I add the account before connecting, but when I try to add an account, the only popup wants me to use a Microsoft account or GitHub account. I can't add my Windows account.
So how do I connect my visual studio to my tfs server?
Thank you.
You should not get a Microsoft Account Prompt if you are trying to connect locally. The prompt is to validate your instance of VS towards your MSDN subscription. You would need to "login" with you Microsoft or Azure AD user that can validate your VS license and to be able to synchronize your settings from one VS to another. This login is the one here
Notice the account settings there, if you click on this you can also add your Visual Studio 2019 Static Key and then you don't need to login every month unless you want to sync your settings.
Bottom line, when connecting to TFS 2018 it will not ask you for Microsoft Credentials.
Please check whether you use the correct URL, and use http instead of https. Also, try the following items:
Close all Visual Studio instances, delete %LOCALAPPDATA%.IdentityService.
Clear TFS caches %LOCALAPPDATA%\Microsoft\Team Foundation\x.0\Cache
Click Add Azure DevOps Server and add the server URL:

I want to invite the member to team on tfs but getting error 'No identities found'

I am getting error "No identities found" when inserting member to my team. I've verified the email address is correct. Why am I seeing this text? How can i fix this?
why cannot found?
You have to use an Active Directory account for on-premise TFS -- you can't provide a hotmail account.
According to your screenshot, you are working on VSTS, you could double confirm this-- sever url should like https://xxx.visualstudio.com.
And you want to login VSTS with an non Microsoft email, you should pay attention to below:
Sign up for Visual Studio Team Services with a work or school account
Control access to Visual Studio Team Services the same way you do with
Microsoft services like Office 365 and Azure. When you sign up with a
work or school account, your Visual Studio Team Services account is
connected to your organization's directory (tenant) in Azure Active
Directory (Azure AD). You can then use the same username and password
as other Microsoft services, like #fabrikam.com. Azure AD helps you
enforce policies around accessing your team's critical resources and
key assets.
More details, please refer link from MSDN: Sign up for Visual Studio Team Services: Git & Agile for DevOps, continuous integration, & continuous delivery
Finally, just follow the details steps in this tutorial to add users to a team project.

Cannot add a visualstudio.com Team Explorer Server in Xamarin Studio

Having trouble adding a Team Explorer server (visualstudio.com) in Xamarin Studio. I enter my credentials (Microsoft account) but nothing happens, and the server is not added in the list of servers. I am using this addin
It seems that you need to enable alternate credentials to be able to log into the server as per this post. See the "Basic auth" section.

TFS 2010 - Portal settings

It doesn't appear that you can modify the base url for the portal settings in TFS 2010. I currently have
http://tfsserver.mydomain.com
I would like the system to launch
http://tfsserver
instead when a user selects 'Show project portal' from Team Explorer.
Is it possible to change the site root that it points to? We keep getting security prompts with fqdn.
I found the answer myself. On the application tier, open the admin console, select SharePoint Web Applications and change the base url there.

Resources