TFS / VSTS扩展 [英] TFS/VSTS extensions

查看:100
本文介绍了TFS / VSTS扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在创建一个与VSTS和TFS 2015更新3+一起使用的扩展,它在仪表板中有一个小部件,用于输入工作时间并提交给我们的第三方系统。

We are creating an extension for use with VSTS and TFS 2015 update 3+ which has a widget in the dashboard for entering work hours and submits to our 3rd party system.

我们正在考虑使用服务端点,我们将端点客户端配置为从可用的3个站点列表中选择一个URL。

We are looking at using service endpoints, where we would configure the endpoint client wide to choose an url from a list of 3 sites available.

扩展将从末尾读取所选的URL在个人的基础上,用户会在第一次使用时输入一个令牌,该令牌将被传递给应用程序进行身份验证。

The extension would read the selected url from the end point and on an individual basis users would enter a token on first use which would be passed to the app to authenticate.

Q1 - 可以通过这种方式为一整套用户使用端点或者是否希望每个用户使用存储在端点中的用户名/密码或令牌设置一个端点?

Q1 - can endpoints be used in this way for a whole set of users or are they expected to be setup one endpoint per user with the username/password or token stored in the endpoint?

Q2 - 端点实际上是一个商店,您可以在其中读取您的身份验证详细信息然后用来对应用程序进行ajax调用?或者您是否可以通过端点实际调用应用程序?

Q2 - are endpoints effectively a store where you read the authentication details from which you then use to make ajax calls to the app? or can you actually call the app through the endpoint?

Q3 - 将向用户显示一个框以输入令牌然后继续进入应用程序。你会把它设置为两个贡献 - 时间条目的第二个是'ms.vss-dashboards-web.widget'类型,第一个是输入令牌的另一种类型吗?
或者您最好只将其作为一个ms.vss-dashboards-web.widget并且有两个窗格 - 如果令牌存在直接进入第二个窗格?

Q3 - the user would be presented with a box to enter the token then proceed to the app. Would you set this up as two contributions - the second for time entry being type 'ms.vss-dashboards-web.widget' and the first being another type to enter the token? Or are you best just doing this as one ms.vss-dashboards-web.widget and having two panes - if the token is present going straight to the second pane?

提前感谢您的帮助

推荐答案

没有方法可以在小部件扩展中获取服务端点的必要信息。 (可以在构建/发布任务扩展中访问它:

从扩展中访问VSTS服务端点凭据

There isn’t the method to get the necessary information of service endpoint in widget extension. (can access it in build/release task extension: Access VSTS Service Endpoint credentials from extension)

关于用于身份验证的令牌,您可以使用
ExtensionDataService


问候

Regarding token that used for authentication, you can store it by using ExtensionDataService.
Regards

Starain


这篇关于TFS / VSTS扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆