Skip to content

Commit 358c449

Browse files
Merge pull request #100486 from archieag/patch-27
Update AspNet webapp quickstart steps for ready-to-go downloaded sample
2 parents 778e07a + fce704b commit 358c449

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

articles/active-directory/develop/quickstart-v2-aspnet-webapp.md

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ ms.custom: aaddev, identityplatformtop40, scenarios:getting-started, languages:A
1717
---
1818

1919
# Quickstart: Add Microsoft identity platform sign-in to an ASP.NET web app
20-
21-
In this quickstart, you'll enable an ASP.NET web app to sign in personal accounts (hotmail.com, outlook.com, others) and work and school accounts from any Azure Active Directory (Azure AD) instance.
22-
23-
![Shows how the sample app generated by this quickstart works](media/quickstart-v2-aspnet-webapp/aspnetwebapp-intro.svg)
24-
20+
In this quickstart, you use a code sample to learn how an ASP.NET web app to sign in personal accounts (hotmail.com, outlook.com, others) and work and school accounts from any Azure Active Directory (Azure AD) instance. (See [How the sample works](#how-the-sample-works) for an illustration.)
2521
> [!div renderon="docs"]
2622
> ## Register and download your quickstart app
2723
> You have two options to start your quickstart application:
@@ -61,26 +57,33 @@ In this quickstart, you'll enable an ASP.NET web app to sign in personal account
6157
6258
#### Step 2: Download your project
6359

64-
[Download the Visual Studio 2019 solution](https://github.com/AzureADQuickStarts/AppModelv2-WebApp-OpenIDConnect-DotNet/archive/master.zip)
60+
> [!div renderon="docs"]
61+
> [Download the Visual Studio 2019 solution](https://github.com/AzureADQuickStarts/AppModelv2-WebApp-OpenIDConnect-DotNet/archive/master.zip)
6562
66-
#### Step 3: Configure your Visual Studio project
63+
> [!div renderon="portal"]
64+
> Run the project using Visual Studio 2019.
65+
> [!div renderon="portal" id="autoupdate" class="nextstepaction"]
66+
> [Download the code sample]()
67+
68+
> [!div class="sxs-lookup" renderon="portal"]
69+
> #### Step 3: Your app is configured and ready to run
70+
> We have configured your project with values of your app's properties.
71+
72+
> [!div renderon="docs"]
73+
> #### Step 3: Run your Visual Studio project
6774
6875
1. Extract the zip file to a local folder closer to the root folder - for example, **C:\Azure-Samples**
6976
1. Open the solution in Visual Studio (AppModelv2-WebApp-OpenIDConnect-DotNet.sln)
7077
1. Depending on the version of Visual Studio, you might need to right click on the project `AppModelv2-WebApp-OpenIDConnect-DotNet` and **Restore NuGet packages**
7178
1. Open the Package Manager Console (View -> Other Windows -> Package Manager Console) and run `Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r`
72-
1. Edit **Web.config** and replace the parameters `ClientId` and `Tenant` with:
73-
74-
```xml
75-
<add key="ClientId" value="Enter_the_Application_Id_here" />
76-
<add key="Tenant" value="Enter_the_Tenant_Info_Here" />
77-
```
78-
> [!div class="sxs-lookup" renderon="portal"]
79-
> > [!NOTE]
80-
> > This quickstart supports Enter_the_Supported_Account_Info_Here.
8179

8280
> [!div renderon="docs"]
83-
> Where:
81+
> 5. Edit **Web.config** and replace the parameters `ClientId` and `Tenant` with:
82+
> ```xml
83+
> <add key="ClientId" value="Enter_the_Application_Id_here" />
84+
> <add key="Tenant" value="Enter_the_Tenant_Info_Here" />
85+
> ```
86+
> Where:
8487
> - `Enter_the_Application_Id_here` - is the Application Id for the application you registered.
8588
> - `Enter_the_Tenant_Info_Here` - is one of the options below:
8689
> - If your application supports **My organization only**, replace this value with the **Tenant Id** or **Tenant name** (for example, contoso.onmicrosoft.com)
@@ -91,10 +94,17 @@ In this quickstart, you'll enable an ASP.NET web app to sign in personal account
9194
> > - To find the values of *Application ID*, *Directory (tenant) ID*, and *Supported account types*, go to the **Overview** page
9295
> > - Ensure the value for `redirectUri` in the **Web.config** corresponds with the **Redirect URI** defined for the App Registration in Azure AD (if not, navigate to the **Authentication** menu for the App Registration and update the **REDIRECT URI** to match)
9396
97+
> [!div class="sxs-lookup" renderon="portal"]
98+
> > [!NOTE]
99+
> > Enter_the_Supported_Account_Info_Here
100+
94101
## More information
95102
96103
This section gives an overview of the code required to sign-in users. This overview can be useful to understand how the code works, main arguments, and also if you want to add sign-in to an existing ASP.NET application.
97104
105+
### How the sample works
106+
![Shows how the sample app generated by this quickstart works](media/quickstart-v2-aspnet-webapp/aspnetwebapp-intro.svg)
107+
98108
### OWIN middleware NuGet packages
99109
100110
You can set up the authentication pipeline with cookie-based authentication using OpenID Connect in ASP.NET with OWIN Middleware packages. You can install these packages by running the following commands in Visual Studio's **Package Manager Console**:

0 commit comments

Comments
 (0)