I am trying to connect to TFS and authenticate user using below code. But I am getting the error:
TF30063: You are not authorized to access https://test.visualstudio.com/DefaultCollection.
var netCred = new NetworkCredential("test@live.in", "password");
var windowsCred = new WindowsCredential(netCred);
var tfsCred = new TfsClientCredentials(windowsCred);
tfsCred.AllowInteractive = false;
var tpc = new TfsTeamProjectCollection(tfsUri, tfsCred);
tpc.Authenticate();
When I am running below code it's prompting windows where i have to enter credentials.
var tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("https://test.visualstudio.com/DefaultCollection"));
var store = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));
This application is going to utilize by external people and I need silent login to TFS.
I saw one below solution but i can't ask every user to do that.
Please suggest me some solution.