使用Windows身份验证连接到TFS [英] connect to TFS using windows authentication
本文介绍了使用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) {
这篇关于使用Windows身份验证连接到TFS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文