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
varusername="[your AAD username]";// This is your AAD username in the form [email protected].
22
+
varpassword="[your AAD password]";// This is your AAD password.
23
+
varaadApplicationID="[your AAD application ID]";// Created when you register an AAD application: https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-integrating-applications.
1. Navigate to the sample in cloned repo `vsts-auth-samples/NonInteractivePatGenerationSample/`
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
20
3. Open the solution file `NonInteractivePatGenerationSample.sln` in [Visual Studio 2017](https://www.visualstudio.com/downloads/)
21
-
4. Open CS file `Program.cs` and look for the ```[value]``` placeholders.
22
-
5. Replace them with the appropriate values.
21
+
4. Open CS file ```Program.cs``` and look at the first few lines in the ```Main``` method. Replace the username and password with the appropriate values. You will need to get the ```aadApplicationID``` value by [registering your app in AAD](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-integrating-applications).
23
22
6. Build and run the solution, the generate PAT will be output to the console window.
0 commit comments