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
Post a Comment