注册桌面应用程序

Register desktop application

我正在开发一个桌面应用程序,它会在创建需要您注意的新拉取请求时提供桌面托盘图标通知。

我完全使用 public 访问令牌为我的帐户开发了应用程序。现在我已经到了需要其他用户能够使用该应用程序的地步,我需要实现 OAuth 2.0 身份验证。

但是,VSO 的应用程序身份验证假设我的应用程序是一个网络应用程序,并询问我无法提供的详细信息(甚至不相关)。

我如何获得一个应用程序 ID,以便其他用户可以使用我的应用程序?

我不确定我是否误解了整个概念。这是我正在使用的 link:https://www.visualstudio.com/en-us/docs/integrate/get-started/auth/oauth

目前无法执行此操作:

Right now, Visual Studio Team Services only support the web server flow, so there's no supported way to implement OAuth for Visual Studio Team Services from an app like a phone app, since there's no way to securely store the app secret.

作为替代方法,您可以使用基本身份验证并要求您的用户启用 "Alternate authentication credentials",然后使用替代凭据对 VSTS API.

进行身份验证