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
Copy file name to clipboardExpand all lines: README.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,11 @@ If you want to register your apps manually, as a first step you'll need to:
72
72
73
73
1. Open the **app.config** file located in **TodoListClient** project's root folder and then paste **Application Id** from the application you just registered for your *TodoListService* under `TodoListServiceScope` parameter, replacing the string `{Enter the Application Id of your TodoListService from the app registration portal}`.
74
74
75
-
> Note: Make sure it uses has the format `api://{TodoListService-Application-Id}/access_as_user` (where {TodoListService-Application-Id} is the Guid representing the Application Id for your TodoListService).
>(where {TodoListService-Application-Id} is the Guid representing the Application Id for your TodoListService).
76
80
77
81
### Step 3: Register the client app (TodoListClient)
78
82
@@ -84,34 +88,33 @@ In this step, you configure your *TodoListClient* project by registering a new a
84
88
1. Select **New registration**.
85
89
1. When the **Register an application page** appears, enter your application's registration information:
86
90
- In the **Name** section, enter a meaningful application name that will be displayed to users of the app, for example `NativeClient-DotNet-TodoListClient`.
87
-
- Change **Supported account types** to **Accounts in any organizational directory and personal Microsoft accounts (e.g. Skype, Xbox, Outlook.com)**.
91
+
- Change **Supported account types** to **Accounts in any organizational directory**.
88
92
- Select **Register** to create the application.
89
-
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 (`ida:ClientId` in `TodoListClient\App.Config`).
90
93
1. From the app's Overview page, select the **Authentication** section.
91
94
- In the **Redirect URLs** | **Suggested Redirect URLs for public clients (mobile, desktop)** section, check **urn:ietf:wg:oauth:2.0:oob**
92
95
- Select **Save**.
93
96
1. Select the **API permissions** section
94
97
- Click the **Add a permission** button and then,
95
-
-Ensure that the **My APIs** tab is selected
98
+
-Select the **My APIs** tab.
96
99
- In the list of APIs, select the `AppModelv2-NativeClient-DotNet-TodoListService API`, or the name you entered for the Web API.
97
-
-In the **Delegated permissions**section, ensure that the right permissions are checked: **access_as_user**. Use the search box if necessary.
100
+
-Check the **access_as_user**permission if it's not already checked. Use the search box if necessary.
98
101
- Select the **Add permissions** button
99
102
100
103
#### Configure your *TodoListClient* project
101
104
102
-
1. In the *Application registration portal*, copy the value of the **Application Id**
105
+
1. In the *Application registration portal*, in the **Overview** page copy the value of the **Application (client) Id**
103
106
1. Open the **app.config** file located in the **TodoListClient** project's root folder and then paste the value in the `ida:ClientId` parameter value
104
107
105
108
### Step 4: Run your project
106
109
107
110
1. Press `<F5>` to run your project. Your *TodoListClient* should open.
108
-
1. Select **Sign in** in the top right and sign in with the same user you have used to register your aplication, or a user in the same directory.
111
+
1. Select **Sign in** in the top right and sign in with the same user you have used to register your application, or a user in the same directory.
109
112
1. At this point, if you are signing in for the first time, you may be prompted to consent to *TodoListService* Web Api.
110
113
1. The sign-in also request the access token to the *access_as_user* scope to access *TodoListService* Web Api and manipulate the *To-Do* list.
111
114
112
115
### Step 5: Pre-authorize your client application
113
116
114
-
One of the ways to allow users from other directories to acces your Web API is by *pre-authorizing* the client applications to access your Web API by adding the Application Ids from client applications in the list of *pre-authorized* applications for your Web API. By adding a pre-authorized client, you will not require user to consent to use your Web API. Follow the steps below to pre-authorize your Web Application::
117
+
One of the ways to allow users from other directories to access your Web API is by *pre-authorizing* the client applications to access your Web API by adding the Application Ids from client applications in the list of *pre-authorized* applications for your Web API. By adding a pre-authorized client, you will not require user to consent to use your Web API. Follow the steps below to pre-authorize your Web Application::
115
118
116
119
1. Go back to the *Application registration portal* and open the properties of your **TodoListService**.
117
120
1. In the **Expose an API** section, click on **Add application** under the *Pre-authorized applications* section.
0 commit comments