You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Navigate to the sample in cloned repo `vsts-auth-samples/ClientLibraryConsoleAppSample/`
19
19
2. Use [Nuget package restore](https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore) to ensure you have all dependencies installed
20
-
3. Open the solution file `ClientLibraryConsoleAppSample.sln` in [Visual Studio IDE 2017](https://www.visualstudio.com/downloads/)
21
-
4. Open CS file `Program.cs` and there will be 2 input fields:
22
-
*`collectionUri` - Mutable value. This is the url to your VSTS/TFS account.
23
-
*`query` - Mutable value. This is the WIQL query you want to execute. Replace this with any query you want to execute.
20
+
3. Open the solution file `ClientLibraryConsoleAppSample.csproj` in [Visual Studio 2017](https://www.visualstudio.com/downloads/)
21
+
4. Open CS file `Program.cs` and there is a section with input values to change at the top of the class:
22
+
*`vstsCollectionUrl` - Mutable value. This is the url to your VSTS/TFS collection, e.g. http://myaccount.visualstudio.com for VSTS or http://myserver:8080/tfs/DefaultCollection for TFS.
24
23
5. Build and run solution. After running you should see a list of the IDs all work items which match your query restrictions.
Copy file name to clipboardExpand all lines: DeviceProfileSample/README.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,7 @@ Package: `Microsoft.Identity.Model.Clients.ActiveDirectory` has already been ins
21
21
22
22
1. Navigate to the sample in cloned repo `vsts-auth-samples/DeviceProfileSample/`
23
23
2. Use [Nuget package restore](https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore) to ensure you have all dependencies installed
24
-
3. Open the solution file `DeviceProfileSample.sln` in [Visual Studio IDE 2017](https://www.visualstudio.com/downloads/)
25
-
4. Open CS file `Program.cs` and there are 4 important fields to be aware of:
26
-
*`VSTSResourceId` - Immutable value. Denotes that we need a VSTS access token.
27
-
*`clientId` - Immutable value*. *Normally your app's registered AAD clientId, but for VSTS is must be the VS client ID provided.
28
-
*`vstsAccountUri` - Mutable value. Denotes your vsts account URL (i.e. https://myaccount.visualstudio.com). Please update this with your account URL.
29
-
*`restEndpoint` - Mutable value. Denotes which REST API endpoint we want to hit. We have configured it to return team project information.
24
+
3. Open the solution file `DeviceProfileSample.csproj` in [Visual Studio 2017](https://www.visualstudio.com/downloads/)
25
+
4. Open CS file `Program.cs` and there is a section with input values to change at the top of the class:
26
+
*`vstsCollectionUrl` - Mutable value. This is the url to your VSTS collection, e.g. http://myaccount.visualstudio.com for VSTS.
30
27
5. Build and run solution. You should see a console window with instruction on how to authenticate via the Device Profile flow. After authenticating you should see all team project information viewable by the authenticated identity displayed in the console window.
internalconststringVSTSResourceId="499b84ac-1321-427f-aa17-267ca6975798";//Static value to target VSTS. Do not change
18
23
internalconststringclientId="872cd9fa-d31f-45e0-9eab-6e460a02d1f1";//VS ClientId. Please use this instead of your app's clientId
19
-
internalconststringVSTSAccountName="myaccount";//change to domain of your VSTS account (e.g. "myaccount" when account name is myaccount.visualstudio.com)
Copy file name to clipboardExpand all lines: ManagedClientConsoleAppSample/README.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,11 @@ Package: `Microsoft.Identity.Model.Clients.ActiveDirectory` has already been ins
19
19
20
20
## Step 3: Run the sample
21
21
22
-
1. Navigate to the ADAL C# sample in cloned repo `vsts-auth-samples/Managed_Client_ADAL_Sample/`
22
+
1. Navigate to the ADAL C# sample in cloned repo `vsts-auth-samples/ManagedClientConsoleAppSample/`
23
23
2. Use [Nuget package restore](https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore) to ensure you have all dependencies installed
24
-
3. Open the solution file `SimpleAdalConsoleApp.sln` in [Visual Studio IDE 2017](https://www.visualstudio.com/downloads/)
25
-
4. Open CS file `Program.cs` and there will be 3 input fields:
26
-
*`VSTSResourceId` - Immutable value. Denotes that we need a VSTS access token.
27
-
*`clientId` - Immutable value*. *Normally your app's registered AAD clientId, but for VSTS is must be the VS client ID provided
28
-
*`VSTSAccountName` - Mutable value. Update with the name of the VSTS account you would like to access. (e.g. "myaccount" from myaccount.visualstuido.com)
24
+
3. Open the solution file `ManagedClientConsoleAppSample.csproj` in [Visual Studio 2017](https://www.visualstudio.com/downloads/)
25
+
4. Open CS file `Program.cs` and there is a section with input values to change at the top of the class:
26
+
*`vstsCollectionUrl` - Mutable value. This is the url to your VSTS/TFS collection, e.g. http://myaccount.visualstudio.com for VSTS or http://myserver:8080/tfs/DefaultCollection for TFS.
29
27
5. Build and run solution. After running you should see a list of all projects inside of myaccount.
Copy file name to clipboardExpand all lines: OAuthWebSample/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
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.
4
4
5
-
To learn more about OAuth in Visual Studio Team Services, see [Authorize access with OAuth 2.0](https://www.visualstudio.com/docs/integrate/get-started/auth/oauth)
5
+
To learn more about OAuth in Visual Studio Team Services, see [Authorize access with OAuth 2.0](https://www.visualstudio.com/docs/integrate/get-started/authentication/oauth)
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@
4
4
5
5
Samples that show how to auth with Visual Studio Team Services and Team Foundation Server.
6
6
7
-
Learn more about [integrating with Team Services](https://www.visualstudio.com/docs/integrate/extensions/overview) and [specific authentication guidence](https://www.visualstudio.com/en-us/docs/integrate/get-started/auth/authentication_guidance)
7
+
Learn more about [integrating with Team Services](https://www.visualstudio.com/docs/integrate/extensions/overview) and [specific authentication guidence](https://www.visualstudio.com/en-us/docs/integrate/get-started/authentication/authentication_guidance)
8
8
9
9
## Samples
10
10
11
-
*[Managed client sample (using Azure Active Directory Auth)](./ManagedClientConsoleAppSample/README.md)
11
+
*[Managed client sample (using Azure Active Directory Library)](./ManagedClientConsoleAppSample/README.md)
0 commit comments