Skip to content

Commit 31e5517

Browse files
author
Justin Marks
committed
Updating branding to Azure DevOps
1 parent dfc25ef commit 31e5517

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

OAuthWebSample/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,5 @@ $RECYCLE.BIN/
164164
storage*
165165
db.lock
166166
*.pubxml
167+
168+
.vs/

OAuthWebSample/OAuthWebSample/Views/Home/Index.cshtml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@{
2-
ViewBag.Title = "Visual Studio Online OAuth Client Sample";
2+
ViewBag.Title = "Azure DevOps OAuth Client Sample";
33

44
var missingMsg = "Not set - update web.config";
55
var clientAppIdVal = !String.IsNullOrEmpty(ViewBag.ClientAppId) ? ViewBag.ClientAppId : missingMsg;
@@ -10,8 +10,8 @@
1010

1111

1212
<div class="jumbotron">
13-
<h1>Visual Studio Online 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 Online on their behalf.</p>
13+
<h1>Azure DevOps 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 Azure DevOps on their behalf.</p>
1515
<p><a href="/oauth/requesttoken" class="btn btn-primary btn-large" >Authorize &raquo;</a></p>
1616
</div>
1717

@@ -21,7 +21,7 @@
2121
<p>
2222
Before you start, make sure to:
2323
<ol>
24-
<li><a href="https://app.vsaex.visualstudio.com/app/register">Register</a> a client app with Visual Studio Online</li>
24+
<li><a href="https://app.vsaex.visualstudio.com/app/register">Register</a> a client app with Azure DevOps</li>
2525
<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
2626
<ul>
2727
<li>App ID: <strong>@clientAppIdVal</strong></li>
@@ -33,8 +33,8 @@
3333
</p>
3434
</div>
3535
<div class="col-md-4">
36-
<h2>Learn about auth in Visual Studio Online</h2>
37-
<p>Visual Studio Online support authorization via OAuth 2.0. Learn more about how you can develop apps that securely access your user's Visual Studio Online projects and perform tasks on their behalf.</p>
38-
<p><a class="btn btn-default" href="http://www.visualstudio.com/integrate/get-started/get-started-auth-oauth2-vsi">Learn more &raquo;</a></p>
36+
<h2>Learn about auth in Azure DevOps</h2>
37+
<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>
38+
<p><a class="btn btn-default" href="https://docs.microsoft.com/en-us/vsts/integrate/get-started/authentication/oauth?view=vsts">Learn more &raquo;</a></p>
3939
</div>
4040
</div>

OAuthWebSample/OAuthWebSample/Views/OAuth/Index.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
ViewBag.Title = "OAuth Sample";
44
}
55

6-
<h2>Connect OAuth Sample to VSO</h2>
6+
<h2>Connect OAuth Sample to Azure DevOps</h2>
77

8-
<p>Click the button below to link this application with VSO!</p>
8+
<p>Click the button below to link this application with Azure DevOps!</p>
99

1010
<form action="OAuth/RequestToken" method="get">
1111
<button type="submit">Link</button>

OAuthWebSample/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# ASP.NET web app (VSTS OAuth sample)
1+
# ASP.NET web app (Azure DevOps OAuth sample)
22

3-
This sample shows how to prompt a user to authorize a cloud service that can call APIs on Visual Studio Team Services on behalf of the user.
3+
This sample shows how to prompt a user to authorize a cloud service that can call APIs on Azure DevOps on behalf of the user.
44

5-
To learn more about OAuth in Visual Studio Team Services, see [Authorize access to VSTS with OAuth 2.0](https://docs.microsoft.com/vsts/integrate/get-started/authentication/oauth?view=vsts)
5+
To learn more about OAuth in Visual Studio Team Services, see [Authorize access to Azure DevOps with OAuth 2.0](https://docs.microsoft.com/vsts/integrate/get-started/authentication/oauth?view=vsts)
66

77
## How to setup
88

@@ -15,7 +15,7 @@ To learn more about OAuth in Visual Studio Team Services, see [Authorize access
1515

1616
3. Update the following settings in web.config to match the values in the app you just registered:
1717
* `ClientAppID`
18-
* `ClientAppSecret` (use the "Client Secret" shown on the VSTS Application Settings page, not the App Secret)
18+
* `ClientAppSecret` (use the "Client Secret" shown on the Azure DevOps Application Settings page, not the App Secret)
1919
* `Scope` (space separated)
2020
* `CallbackUrl`
2121

@@ -38,7 +38,7 @@ To learn more about OAuth in Visual Studio Team Services, see [Authorize access
3838

3939
If everything is setup properly, Visual Studio Team Services will issue an access token and refresh token and both values will be displayed. **You should keep these values secret**. Also a new authorization will appear in [your profile page](https://app.vssps.visualstudio.com/Profile/View).
4040

41-
With the access token you can invoke [Visual Studio Team Services REST APIs](https://www.visualstudio.com/docs/integrate/api/overview) by providing the access token in the Authorization header.
41+
With the access token you can invoke [Azure DevOps REST APIs](https://docs.microsoft.com/en-us/rest/api/vsts/?view=vsts-rest-4.1&viewFallbackFrom=vsts) by providing the access token in the Authorization header.
4242

4343
```
4444
Authorization: Bearer {access token}

0 commit comments

Comments
 (0)