使用Windows身份验证连接到TFS

使用Windows身份验证连接到TFS

问题描述:

大家好

我正在使用javascript从TFS服务器加载一些数据。在我公司,他们使用windows  认证 访问TFS(
i了解是windows集成 
身份验证)但是我找不到任何关于如何使用它从
我的应用程序访问TFS的示例和加载让我们说工作项。

i'm using javascript to load some data from TFS server. in my company , they use windows authentication  to access TFS (which i understand is windows integrated authentication ) but i couldn't find any example on how to use this to access the TFS from my application and load let's say work items.

提前谢谢

我可以使用此代码吗? 

can i use this code ? 


.ajax({
url:'https :// myserver:8090 / tfs / IKM.TPC.Projects / MR / _workitems',
类型:'GET',
dataType:'json',
xhrFields:{
withCredentials:true
}
})
.done(function(数据){
.ajax({ url: 'https://myserver:8090/tfs/IKM.TPC.Projects/MR/_workitems', type: 'GET', dataType: 'json', xhrFields: { withCredentials: true } }) .done(function (data) {


('#result')。text(data);
})
.fail(函数(jqXHR,textStatus,errorThrown){
('#result').text(data); }) .fail(function (jqXHR, textStatus, errorThrown) {