|
1 | 1 | @{
|
2 |
| - ViewBag.Title = "Visual Studio Team Services OAuth Client Sample"; |
| 2 | + ViewBag.Title = "Azure DevOps OAuth Client Sample"; |
3 | 3 |
|
4 | 4 | var missingMsg = "Not set - update web.config";
|
5 | 5 | var clientAppIdVal = !String.IsNullOrEmpty(ViewBag.ClientAppId) ? ViewBag.ClientAppId : missingMsg;
|
6 | 6 | var scopeVal = !String.IsNullOrEmpty(ViewBag.Scope) ? ViewBag.Scope : missingMsg;
|
7 | 7 | var callbackUrlVal = !String.IsNullOrEmpty(ViewBag.CallbackUrl) ? ViewBag.CallbackUrl : missingMsg;
|
8 | 8 | }
|
9 | 9 |
|
10 |
| - |
11 |
| - |
12 | 10 | <div class="jumbotron">
|
13 |
| - <h1>Visual Studio Team Services OAuth Client Sample</h1> |
14 |
| - <p class="lead">This app shows how to authorize a user to authorize an app and then to request an access token to access Visual Studio Team Services on their behalf.</p> |
15 |
| - <p><a href="@Url.Action("Authorize", "OAuth")" class="btn btn-primary btn-large">Authorize »</a></p> |
| 11 | + <h1>Azure DevOps OAuth Client Sample</h1> |
| 12 | + <p class="lead">This app shows how to authorize a user to authorize an app and then to request an access token to access Azure DevOps on their behalf.</p> |
| 13 | + <p><a href="/oauth/requesttoken" class="btn btn-primary btn-large" >Authorize »</a></p> |
16 | 14 | </div>
|
17 | 15 |
|
18 | 16 | <div class="row">
|
|
21 | 19 | <p>
|
22 | 20 | Before you start, make sure to:
|
23 | 21 | <ol>
|
24 |
| - <li><a href="https://app.vsaex.visualstudio.com/app/register">Register</a> a client app with Visual Studio Team Services</li> |
| 22 | + <li><a href="https://app.vsaex.visualstudio.com/app/register">Register</a> a client app with Azure DevOps</li> |
25 | 23 | <li>Update the web.config of this web app and set the App ID, Scope, App Secret, and Callback URL set in the registered app. The callback URL should be https://<i>site</i>/oauth/callback
|
26 | 24 | <ul>
|
27 | 25 | <li>App ID: <strong>@clientAppIdVal</strong></li>
|
|
33 | 31 | </p>
|
34 | 32 | </div>
|
35 | 33 | <div class="col-md-4">
|
36 |
| - <h2>Learn about auth in Visual Studio Team Services</h2> |
37 |
| - <p>Visual Studio Team Services support authorization via OAuth 2.0. Learn more about how you can develop apps that securely access your user's Visual Studio Team Services projects and perform tasks on their behalf.</p> |
38 |
| - <p><a class="btn btn-default" href="https://docs.microsoft.com/vsts/integrate/get-started/authentication/oauth?view=vsts">Learn more »</a></p> |
| 34 | + <h2>Learn about auth in Azure DevOps</h2> |
| 35 | + <p>Azure DevOps supports authorization via OAuth 2.0. Learn more about how you can develop apps that securely access your user's Azure DevOps projects and perform tasks on their behalf.</p> |
| 36 | + <p><a class="btn btn-default" href="https://docs.microsoft.com/en-us/vsts/integrate/get-started/authentication/oauth?view=vsts">Learn more »</a></p> |
39 | 37 | </div>
|
40 | 38 | </div>
|
0 commit comments