Skip to content

Commit 795be9c

Browse files
authored
Update AspNet webapp quickstart steps for ready-to-go downloaded sample (Do not merge)
1 parent 6211cf4 commit 795be9c

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

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

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ ms.collection: M365-identity-device-management
2121

2222
[!INCLUDE [active-directory-develop-applies-v2](../../../includes/active-directory-develop-applies-v2.md)]
2323

24-
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.
25-
26-
![Shows how the sample app generated by this quickstart works](media/quickstart-v2-aspnet-webapp/aspnetwebapp-intro.svg)
24+
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.)
2725

2826
> [!div renderon="docs"]
2927
> ## Register and download your quickstart app
@@ -64,25 +62,32 @@ In this quickstart, you'll enable an ASP.NET web app to sign in personal account
6462
6563
#### Step 2: Download your project
6664

67-
[Download the Visual Studio 2019 solution](https://github.com/AzureADQuickStarts/AppModelv2-WebApp-OpenIDConnect-DotNet/archive/master.zip)
65+
> [!div renderon="docs"]
66+
> [Download the Visual Studio 2019 solution](https://github.com/AzureADQuickStarts/AppModelv2-WebApp-OpenIDConnect-DotNet/archive/master.zip)
6867
69-
#### Step 3: Configure your Visual Studio project
68+
> [!div renderon="portal"]
69+
> Run the project using Visual Studio or your favorite editor
70+
> [!div renderon="portal" id="autoupdate" class="nextstepaction"]
71+
> [Download the code sample]()
72+
73+
> [!div class="sxs-lookup" renderon="portal"]
74+
> #### Step 3: Your app is configured and ready to run
75+
> We have configured your project with values of your app's properties.
76+
77+
> [!div renderon="docs"]
78+
> #### Step 4: Run your Visual Studio project
7079
7180
1. Extract the zip file to a local folder closer to the root folder - for example, **C:\Azure-Samples**
7281
1. Open the solution in Visual Studio (AppModelv2-WebApp-OpenIDConnect-DotNet.sln)
7382
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**
7483
1. Open the Package Manager Console (View -> Other Windows -> Package Manager Console) and run `Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r`
75-
1. Edit **Web.config** and replace the parameters `ClientId` and `Tenant` with:
76-
77-
```xml
78-
<add key="ClientId" value="Enter_the_Application_Id_here" />
79-
<add key="Tenant" value="Enter_the_Tenant_Info_Here" />
80-
```
81-
> [!div class="sxs-lookup" renderon="portal"]
82-
> > [!NOTE]
83-
> > This quickstart supports Enter_the_Supported_Account_Info_Here.
8484

8585
> [!div renderon="docs"]
86+
> 5. Edit **Web.config** and replace the parameters `ClientId` and `Tenant` with:
87+
> ```xml
88+
> <add key="ClientId" value="Enter_the_Application_Id_here" />
89+
> <add key="Tenant" value="Enter_the_Tenant_Info_Here" />
90+
> ```
8691
> Where:
8792
> - `Enter_the_Application_Id_here` - is the Application Id for the application you registered.
8893
> - `Enter_the_Tenant_Info_Here` - is one of the options below:
@@ -94,10 +99,17 @@ In this quickstart, you'll enable an ASP.NET web app to sign in personal account
9499
> > - To find the values of *Application ID*, *Directory (tenant) ID*, and *Supported account types*, go to the **Overview** page
95100
> > - 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)
96101
102+
> [!div class="sxs-lookup" renderon="portal"]
103+
> > [!NOTE]
104+
> > This quickstart supports Enter_the_Supported_Account_Info_Here.
105+
97106
## More information
98107
99108
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.
100109
110+
### How the sample works
111+
![Shows how the sample app generated by this quickstart works](media/quickstart-v2-aspnet-webapp/aspnetwebapp-intro.svg)
112+
101113
### OWIN middleware NuGet packages
102114
103115
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)