Skip to content

Commit 5588a87

Browse files
author
Andrew Omondi
committed
Readme updates to clarify the setting up of the application.
1 parent eea56ad commit 5588a87

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,6 @@ pip-log.txt
214214

215215
#Mr Developer
216216
.mr.developer.cfg
217+
218+
#Appsettings.json file
219+
ConsoleApplication/appsettings.json

ConsoleApplication/appsettings.json renamed to ConsoleApplication/appsettings.json.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// ClientId (ApplicationId) as copied from the application registration (which depends on the cloud instance)
2424
// See docs referenced in the AzureCloudInstance section above
25-
"ClientId": "To be filled in",
25+
"ClientId": "YOUR_CLIENT_ID_HERE",
2626

2727
// Web API. Here Microsoft Graph. The endpoint is different depending on the cloud instance
2828
// (See docs referenced in the "Instance" section above.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ As a first step you'll need to:
3737
- Select **Register** to create the application.
3838
1. On the app **Overview** page, find the **Application (client) ID** value and record it for later. You'll need it to configure the Visual Studio configuration file for this project.
3939
1. In the list of pages for the app, select **Authentication**
40-
- In the *Suggested Redirect URIs for public clients(mobile,desktop)*, check all the boxes so that the app can work with the MSAL libs used in the application.
40+
- In the *Suggested Redirect URIs for public clients(mobile,desktop)*, check the second box so that the app can work with the MSAL libs used in the application. (The box should contain the option *urn:ietf:wg:oauth:2.0:oob*).
4141
1. In the list of pages for the app, select **API permissions**
4242
- Click the **Add a permission** button and then,
4343
- Ensure that the **Microsoft APIs** tab is selected
@@ -53,8 +53,9 @@ Open the solution in Visual Studio to configure the projects
5353

5454
#### Configure the client project
5555

56-
1. Open the `ConsoleApplication\appsettings.json` file
57-
1. Find the line where `ClientId` is set and replace the existing value with the application ID (clientId) of the `ConsoleApp-DeltaQuery-DotNet` application copied from the Azure portal.
56+
1. In the *ConsoleApplication* folder, rename the `appsettings.json.example` file to `appsettings.json`
57+
1. Open and edit the `appsettings.json` file to make the following change
58+
1. Find the line where `ClientId` is set as `YOUR_CLIENT_ID_HERE` and replace the existing value with the application ID (clientId) of the `ConsoleApp-DeltaQuery-DotNet` application copied from the Azure portal.
5859

5960
Clean the solution, rebuild the solution, and start it in the debugger.
6061

0 commit comments

Comments
 (0)