Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1aa98ae

Browse files
committed
Improving the README.md and AppCreationScripts.md
based on feedback and learnings from other samples
1 parent be432a3 commit 1aa98ae

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

‎AppCreationScripts/AppCreationScripts.md‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ To use the app creation scripts:
3434
```PowerShell
3535
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted
3636
```
37-
4. If you have never done it already, in the PowerShell window, install the AzureAD PowerShell modules. For this, type:
38-
```PowerShell
39-
Install-Module AzureAD
40-
```
37+
4. If you have never done it already, in the PowerShell window, install the AzureAD PowerShell modules. For this:
38+
39+
1. Open PowerShell as admin (On Windows, Search Powershell in the search bar, right click on it and select Run as administrator).
40+
2. Type:
41+
```PowerShell
42+
Install-Module AzureAD
43+
```
4144
5. Go to the `AppCreationScripts` sub-folder. From the folder where you cloned the repo,
4245
```PowerShell
4346
cd AppCreationScripts

‎README.md‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ As a first step you'll need to:
7979
1. Click on **All services** in the left-hand nav, and choose **Azure Active Directory**.
8080

8181
> In the next steps, you might need the tenant name (or directory name) or the tenant ID (or directory ID). These are presented in the **Properties**
82-
of the Azure Active Directory window respectively as *Name* and *Directory ID*
82+
of the Azure Active Directory window respectively as *Name* and *Directory ID*
8383

8484
#### Register the service app (TodoListService-ManualJwt)
8585

@@ -139,6 +139,7 @@ This method:
139139
4. Sets the parameters to validate:
140140
- the audience - the application accepts both its App ID URI and its AppID/clientID
141141
- the valid issuers - the application accepts both Azure AD V1 and Azure AD V2
142+
142143
5. Then it delegates to the `JwtSecurityTokenHandler` class (provided by the `System.IdentityModel.Tokens` library)
143144

144145
the `TokenValidationHandler` class is registered with ASP.NET in the `TodoListService-ManualJwt/Global.asx.cs` file, in the [application_start()](https://github.com/Azure-Samples/active-directory-dotnet-webapi-manual-jwt-validation/blob/4b80657c5506c8cb30af67b9f61bb6aa68dfca58/TodoListService-ManualJwt/Global.asax.cs#L54) method:
@@ -187,19 +188,19 @@ This project has one WebApp / Web API projects. To deploy them to Azure Web Site
187188
### Create and Publish the `TodoListService-ManualJwt` to an Azure Web Site
188189

189190
1. Sign in to the [Azure portal](https://portal.azure.com).
190-
2. Click Newin the top left-hand corner, select Web + Mobile --> Web App, select the hosting plan and region, and give your web site a name, for example, `TodoListService-ManualJwt-contoso.azurewebsites.net`. Click Create Web Site.
191-
3. Once the web site is created, click on it to manage it. For this set of steps, download the publish profile and save it. Other deployment mechanisms, such as from source control, can also be used.
192-
4. Switch to Visual Studio and go to the TodoListService project. Right click on the project in the Solution Explorer and select Publish. Click Import, and import the publish profile that you downloaded.
193-
5. Onthe Connection tab, update the Destination URL so that it is https, for example [https://TodoListService-ManualJwt-contoso.azurewebsites.net](https://TodoListService-ManualJwt-contoso.azurewebsites.net). Click Next.
194-
6. On the Settings tab, make sure Enable Organizational Authentication is NOT selected. Click Publish.
191+
2. Click **Createaresource** in the top left-hand corner, select **Web + Mobile** --> **Web App**, select the hosting plan and region, and give your web site a name, for example, `TodoListService-ManualJwt-contoso.azurewebsites.net`. Click Create Web Site.
192+
3. Once the web site is created, click on it to manage it. For this set of steps, download the publish profile byclicking **Getpublishprofile** and save it. Other deployment mechanisms, such as from source control, can also be used.
193+
4. Switch to Visual Studio and go to the TodoListService project. Right click on the project in the Solution Explorer and select **Publish**. Click **ImportProfile** onthebottombar, and import the publish profile that you downloadedearlier.
194+
5. Clickon **Settings** andinthe `Connection tab`, update the Destination URL so that it is https, for example [https://TodoListService-ManualJwt-contoso.azurewebsites.net](https://TodoListService-ManualJwt-contoso.azurewebsites.net). Click Next.
195+
6. On the Settings tab, make sure `Enable Organizational Authentication` is NOT selected. Click **Save**. Click on **Publish** on the main screen.
195196
7. Visual Studio will publish the project and automatically open a browser to the URL of the project. If you see the default web page of the project, the publication was successful.
196197

197198
### Update the Active Directory tenant application registration for `TodoListService-ManualJwt`
198199

199200
1. Navigate to the [Azure portal](https://portal.azure.com).
200201
2. On the top bar, click on your account and under the **Directory** list, choose the Active Directory tenant containing the `TodoListService-ManualJwt` application.
201202
3. On the applications tab, select the `TodoListService-ManualJwt` application.
202-
4. From the Settings -> PropertiesandSettings -> Reply URLs menus, update the Sign-On URL, and Reply URL fields to the address of your service, for example [https://TodoListService-ManualJwt-contoso.azurewebsites.net](https://TodoListService-ManualJwt-contoso.azurewebsites.net). Save the configuration.
203+
4. From the Settings -> Reply URLs menu, update the Sign-On URL, and Reply URL fields to the address of your service, for example [https://TodoListService-ManualJwt-contoso.azurewebsites.net](https://TodoListService-ManualJwt-contoso.azurewebsites.net). Save the configuration.
203204
204205
### Update the `TodoListClient-ManualJwt` to call the `TodoListService-ManualJwt` Running in Azure Web Sites
205206

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /