c# - connect to tfs with current logged in windows user -


i trying connect tfs in mvc application. want connect logged in windows user credentials. tried

var tfscredentials = new tfsclientcredentials(new windowscredential(), true);             tfsteamprojectcollection teamcollection = new tfsteamprojectcollection(new uri("http://tfssite.com/tfs/" + collection), tfscredentials); 

this doesnt return user when debug , information based on app pool user identity.

i enabled windows authentication in web.config nothing seems working.

appreciate help.

thanks, gt

this way

tfsteamprojectcollection teamcollection = new tfsteamprojectcollection(   new uri("http://tfssite.com/tfs/" + collection),   system.net.credentialcache.defaultnetworkcredentials); 

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -