Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 90b67c0

Browse files
Minor formatting edits
1 parent a73fd38 commit 90b67c0

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

3-Authorization-II/1-call-api/AppCreationScripts/sample.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"Service": ".NET Core web API",
88
"RepositoryUrl": "ms-identity-javascript-angular-tutorial",
99
"Endpoint": "AAD v2.0",
10+
"Platform": "javascript",
1011
"Languages": [
1112
"typescript",
1213
"csharp"
@@ -38,14 +39,14 @@
3839
],
3940
"AppRoles": [
4041
{
41-
"Types": [
42+
"AllowedMemberTypes": [
4243
"Application"
4344
],
4445
"Name": "TodoList.Read.All",
4546
"Description": "Allow this application to read every users Todo list items"
4647
},
4748
{
48-
"Types": [
49+
"AllowedMemberTypes": [
4950
"Application"
5051
],
5152
"Name": "TodoList.ReadWrite.All",

3-Authorization-II/1-call-api/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
page_type: sample
33
name: An Angular SPA using MSAL Angular to sign-in users with Azure Active Directory and call a protected .NET Core web API
44
services: ms-identity
5+
platform: javascript
56
languages:
67
- typescript
78
- csharp
@@ -13,7 +14,7 @@ urlFragment: ms-identity-javascript-angular-tutorial
1314
description: An Angular SPA using MSAL Angular to sign-in users with Azure Active Directory and call a protected .NET Core web API
1415
---
1516

16-
# Angular single-page application using MSAL Angular to sign-in users with Azure Active Directory and call a .NET Core web API
17+
# An Angular SPA using MSAL Angular to sign-in users with Azure Active Directory and call a protected .NET Core web API
1718

1819
* [Overview](#overview)
1920
* [Scenario](#scenario)
@@ -95,7 +96,7 @@ For more information and potential issues, see: [HTTPS in .NET Core](https://doc
9596
npm install
9697
```
9798

98-
### Step 4: Register the sample application(s) in your tenant
99+
### Step 3: Register the sample application(s) in your tenant
99100

100101
There are two projects in this sample. Each needs to be separately registered in your Azure AD tenant. To register these projects, you can:
101102

@@ -130,7 +131,7 @@ There are two projects in this sample. Each needs to be separately registered in
130131
131132
#### Choose the Azure AD tenant where you want to create your applications
132133
133-
As a first step you'll need to:
134+
To manually register the apps, as a first step you'll need to:
134135
135136
1. Sign in to the [Azure portal](https://portal.azure.com).
136137
1. If your account is present in more than one Azure AD tenant, select your profile at the top right corner in the menu on top of the page, and then **switch directory** to change your portal session to the desired Azure AD tenant.
@@ -154,18 +155,18 @@ As a first step you'll need to:
154155
1. Select **Add a scope** button open the **Add a scope** screen and Enter the values as indicated below:
155156
1. For **Scope name**, use `TodoList.Read`.
156157
1. Select **Admins and users** options for **Who can consent?**.
157-
1. For **Admin consent display name** type in the details, `e.g. Allows to read Todolist items`.
158-
1. For **Admin consent description** type in the details `e.g. Allow the app to read Todolist items on your behalf.`
159-
1. For **User consent display name** type in the details `e.g. Allows to read Todolist items`.
160-
1. For **User consent description** type in the details `e.g. Allow the app to read Todolist items on your behalf.`
158+
1. For **Admin consent display name** type in the details, `e.g. Allow the users of the app msal-dotnet-api to read ToDo list items`.
159+
1. For **Admin consent description** type in the details `e.g. Allows the app msal-dotnet-api to read the signed-in users ToDo list items.`
160+
1. For **User consent display name** type in the details `e.g. Read ToDo list items as yourself`.
161+
1. For **User consent description** type in the details `e.g. Allow the app msal-dotnet-api to read ToDo list items on your behalf.`
161162
1. Keep **State** as **Enabled**.
162163
1. Select the **Add scope** button on the bottom to save this scope.
163164
> Repeat the steps above for another scope named **TodoList.ReadWrite**
164165
1. Select the **Manifest** blade on the left.
165166
1. Set `accessTokenAcceptedVersion` property to **2**.
166167
1. Select on **Save**.
167168
168-
> :information_source: Be aware of [the principle of least privilege](https://docs.microsoft.com/azure/active-directory/develop/secure-least-privileged-access) whenever you are publishing permissions for a web API.
169+
> :information_source: Follow [the principle of least privilege](https://docs.microsoft.com/azure/active-directory/develop/secure-least-privileged-access) whenever you are publishing permissions for a web API.
169170
170171
##### Publish Application Permissions
171172
@@ -210,7 +211,7 @@ Open the project in your IDE (like Visual Studio or Visual Studio Code) to confi
210211
1. Select **Register** to create the application.
211212
1. In the **Overview** blade, find and note the **Application (client) ID**. You use this value in your app's configuration file(s) later in your code.
212213
1. Since this app signs-in users, we will now proceed to select **delegated permissions**, which is is required by apps signing-in users.
213-
1. In the app's registration screen, select the **API permissions** blade in the left to open the page where we add access to the APIs that your application needs:
214+
1. In the app's registration screen, select the **API permissions** blade in the left to open the page where we add access to the APIs that your application needs:
214215
1. Select the **Add a permission** button and then,
215216
1. Ensure that the **My APIs** tab is selected.
216217
1. In the list of APIs, select the API `msal-dotnet-api`.
@@ -228,7 +229,7 @@ Open the project in your IDE (like Visual Studio or Visual Studio Code) to confi
228229
1. Find the key `Enter_the_Tenant_Info_Here` and replace the existing value with your Azure AD tenant ID.
229230
1. Find the key `Enter_the_Web_Api_Application_Id_Here` and replace the existing value(s) with the application ID (client ID) of the web API project that you've registered earlier, e.g. `api://<msal-dotnet-api-client-id>/TodoList.Read`
230231
231-
### Step 5: Running the sample
232+
### Step 4: Running the sample
232233
233234
From your shell or command line, execute the following commands:
234235

0 commit comments

Comments
 (0)