Skip to content

Commit 2599ef8

Browse files
committed
updated readme and ps1 with new wording
1 parent 3918633 commit 2599ef8

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

4-WebApp-your-API/4-1-MyOrg/AppCreationScripts/Configure.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@ Function ConfigureApplications
228228
-userConsentDisplayName "Access TodoListService-aspnetcore-webapi" `
229229
-userConsentDescription "Allow the application to access TodoListService-aspnetcore-webapi on your behalf." `
230230
-adminConsentDisplayName "Access TodoListService-aspnetcore-webapi" `
231-
-adminConsentDescription "Allows the app to have the same access to information in the directory on behalf of the signed-in user."
231+
-adminConsentDescription "Allow the app TodoListService-aspnetcore-webapi to [ex, read ToDo list items]"
232232

233233
$scopes.Add($scope)
234234
$scope = CreateScope -value ToDoList.Write `
235235
-userConsentDisplayName "Access TodoListService-aspnetcore-webapi" `
236236
-userConsentDescription "Allow the application to access TodoListService-aspnetcore-webapi on your behalf." `
237237
-adminConsentDisplayName "Access TodoListService-aspnetcore-webapi" `
238-
-adminConsentDescription "Allows the app to have the same access to information in the directory on behalf of the signed-in user."
238+
-adminConsentDescription "Allow the app TodoListService-aspnetcore-webapi to [ex, read ToDo list items]"
239239

240240
$scopes.Add($scope)
241241

4-WebApp-your-API/4-1-MyOrg/README.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ Table Of Contents
3838
1. The [Access Tokens](https://docs.microsoft.com/azure/active-directory/develop/access-tokens) is used as a bearer token to authorize the user to call the ASP.NET Core Web API protected by **Azure AD**.
3939

4040
![Scenario Image](./ReadmeFiles/topology.png)
41-
4241
## Prerequisites
4342

4443
* Either [Visual Studio](https://visualstudio.microsoft.com/downloads/) or [Visual Studio Code](https://code.visualstudio.com/download) and [.NET Core SDK](https://www.microsoft.com/net/learn/get-started)
4544
* An **Azure AD** tenant. For more information, see: [How to get an Azure AD tenant](https://docs.microsoft.com/azure/active-directory/develop/test-setup-environment#get-a-test-tenant)
4645
* A user account in your **Azure AD** tenant. This sample will not work with a **personal Microsoft account**. If you're signed in to the [Azure portal](https://portal.azure.com) with a personal Microsoft account and have not created a user account in your directory before, you will need to create one before proceeding.
47-
4846
## Setup the sample
4947

5048
### Step 1: Clone or download this repository
@@ -69,7 +67,7 @@ or download and extract the repository .zip file.
6967

7068
There are two projects in this sample. Each needs to be separately registered in your Azure AD tenant. To register these projects:
7169

72-
You can follow the [manual steps](#Manual-steps)
70+
Follow the [manual steps](#Manual-steps)
7371

7472
**OR**
7573

@@ -99,6 +97,13 @@ You can follow the [manual steps](#Manual-steps)
9997
.\Configure.ps1 -TenantId "[Optional] - your tenant id" -Environment "[Optional] - Azure environment, defaults to 'Global'"
10098
```
10199
100+
1. In case the previous script fails with error about duplicate App Registration, you might want to run the next cleanup script prior to re-running Configure.ps1
101+
102+
```powershell
103+
cd .\AppCreationScripts\
104+
.\Cleanup.ps1
105+
```
106+
102107
> Other ways of running the scripts are described in [App Creation Scripts guide](./AppCreationScripts/AppCreationScripts.md)
103108
> The scripts also provide a guide to automated application registration, configuration and removal which can help in your CI/CD scenarios.
104109
@@ -133,8 +138,8 @@ Follow the steps below for manually register and configure your apps
133138
* Select **Add a scope** button open the **Add a scope** screen and Enter the values as indicated below:
134139
* For **Scope name**, use `ToDoList.Read`.
135140
* Select **Admins and users** options for **Who can consent?**.
136-
- For **Admin consent display name** type `Allow the app TodoListService-aspnetcore-webapi to [ex, read ToDo list items] as the signed-in user`.
137-
- For **Admin consent description** type `Allow the application to [ex, read ToDo list items] as the signed-in user.`
141+
- For **Admin consent display name** type `Allow the app TodoListService-aspnetcore-webapi to [ex, read ToDo list items]`.
142+
- For **Admin consent description** type `Allow the app TodoListService-aspnetcore-webapi to [ex, read ToDo list items]`
138143
- For **User consent display name** type `[ex, Read ToDo list items] as you`.
139144
- For **User consent description** type `Allow the application to [ex, Read ToDo list items] as the signed-in user on your behalf.`
140145
* Keep **State** as **Enabled**.
@@ -208,16 +213,18 @@ Follow the steps below for manually register and configure your apps
208213
### Variation: web app using client certificates
209214
210215
Follow [README-use-keyvault-certificate.md](README-use-keyvault-certificate.md) to know how to use this option.
211-
212216
### Step 4: Running the sample
213-
To run the samlple, run the next commands:
217+
218+
To run the sample, run the following commands in the console:
219+
214220
```console
215221
cd 4-WebApp-Your-API\4-1-MyOrg\TodoListService
216222
dotnet run
217223
```
218224

219225
Then open a separate command line terminal and run
220226

227+
221228
```console
222229
cd 4-WebApp-Your-API\4-1-MyOrg\Client
223230
dotnet run
@@ -530,6 +537,7 @@ Also, if you increase the instance count of the web site, requests will be distr
530537

531538
</details>
532539

540+
533541
## Next Steps
534542

535543
Learn how to:
@@ -546,12 +554,12 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
546554
547555
## Learn More
548556

549-
* Microsoft identity platform (Azure Active Directory for developers)](https://docs.microsoft.com/azure/active-directory/develop/)
550-
* Overview of Microsoft Authentication Library (MSAL)](https://docs.microsoft.com/azure/active-directory/develop/msal-overview)
551-
* Authentication Scenarios for Azure AD](https://docs.microsoft.com/azure/active-directory/develop/authentication-flows-app-scenarios)
552-
* Azure AD code samples](https://docs.microsoft.com/azure/active-directory/develop/sample-v2-code)
553-
* Register an application with the Microsoft identity platform](https://docs.microsoft.com/azure/active-directory/develop/quickstart-register-app)
554-
* Building Zero Trust ready apps](https://aka.ms/ztdevsession)
557+
* [Microsoft identity platform (Azure Active Directory for developers)](https://docs.microsoft.com/azure/active-directory/develop/)
558+
* [Overview of Microsoft Authentication Library (MSAL)](https://docs.microsoft.com/azure/active-directory/develop/msal-overview)
559+
* [Authentication Scenarios for Azure AD](https://docs.microsoft.com/azure/active-directory/develop/authentication-flows-app-scenarios)
560+
* [Azure AD code samples](https://docs.microsoft.com/azure/active-directory/develop/sample-v2-code)
561+
* [Register an application with the Microsoft identity platform](https://docs.microsoft.com/azure/active-directory/develop/quickstart-register-app)
562+
* [Building Zero Trust ready apps](https://aka.ms/ztdevsession)
555563
556564
For more information, visit the following links:
557565

0 commit comments

Comments
 (0)