I've got a .NET-Webservice written in C# which uses Windows-Authentification. So when I'm connecting to my webservice to use a webmethod, I'm getting the login-form first, where I can write my username and password. This authentification works correctly but now, I want to use THAT authentification to login to the Team Foundation Server (Yes they are the same). Is there any possibility to use the windows-credentials or the authentification in my C#-Code to forward them to the TfsTeamProjectCollection-object?
That's how I connect for now:
NetworkCredential credentials = new NetworkCredential(tfsUsername, password);
TfsTeamProjectCollection tfs = new TfsTeamProjectCollection(new Uri(tfsURL), credentials);
tfs.Authenticate();
So now, I want to use somehow my windows-authentification to forward them to the constructor of the TfsTeamProjectCollection, instead of using my NetworkCredential credentials object.
Any information about that would be very nice. Thanks :)