使用oAuth连接到vso时的callbackurl [英] callbackurl while connecting to vso using oAuth
问题描述
我正在尝试使用oAuth连接到VSO. 第一步是注册我们的应用程序并配置回叫网址. 我正在创建一个控制台应用程序来测试连接性. 请让我知道如何配置回调网址.
I am trying to connect to VSO using oAuth. First step is to register our app and configure a call back url. I am creating a console application to test the connectivity. Please let me know how to configure the callback url.
推荐答案
首先,请注意:目前,仅支持注册Web应用程序,无法注册控制台应用程序.
Firstly, please take note that: Right now, it is only supported to register web application, it is impossible to register a console app.
因此,您首先需要拥有一个Web应用程序,然后可以下载并使用此示例项目来快速入门: https://vsooauthclientsample.codeplex.com/
So, you need to have a web app first, you can download and use this sample project for a quick start: https://vsooauthclientsample.codeplex.com/
下载应用后,在VS2013或更高版本中打开它,在解决方案资源管理器中右键单击它,然后选择发布.
After you download the app, open it in VS2013 or higher, right-click it in Solution Explorer and select Publish.
在发布网站页面上,选择 Microsoft Azure网站选项以将该网站发布到Azure.
On the Publish Web page, select Microsoft Azure Website option to publish that web app to Azure.
然后,将Web应用程序发布到Azure,其URL类似于: https://vsodevabc.azurewebsites .net
Then, the web app is published to Azure with the URL similar to: https://vsodevabc.azurewebsites.net
当您注册此Web应用程序时,可以将应用程序网站和回调URL 设置为以下内容. (请注意:回调网址应为 https://yoursite.azurewebsites.net/oauth/callback,其中您的网站"是您的Azure网站的名称)
And when you register this web app, you can set Application Website and Callback URL to be the followings. (note: the callback URL should be https://yoursite.azurewebsites.net/oauth/callback, where "yoursite" is the name of your Azure web site)
这篇关于使用oAuth连接到vso时的callbackurl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!