Skip to content

Commit 60b88e4

Browse files
authored
Merge pull request #100698 from archieag/patch-28
Update AspNet core webapp quickstart steps for ready-to-go downloaded sample
2 parents 358c449 + 1954df7 commit 60b88e4

File tree

1 file changed

+27
-18
lines changed

1 file changed

+27
-18
lines changed

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

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

1919
# Quickstart: Add sign-in with Microsoft to an ASP.NET Core web app
20-
21-
In this quickstart, you'll learn how an ASP.NET Core web app can 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-core-webapp/aspnetcorewebapp-intro.svg)
24-
20+
In this quickstart, you use a code sample to learn how an ASP.NET Core web app can 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:
@@ -63,22 +59,32 @@ In this quickstart, you'll learn how an ASP.NET Core web app can sign in persona
6359
6460
#### Step 2: Download your ASP.NET Core project
6561

66-
- [Download the Visual Studio 2019 solution](https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/archive/aspnetcore2-2.zip)
67-
68-
#### Step 3: Configure your Visual Studio project
69-
70-
1. Extract the zip file to a local folder within the root folder - for example, **C:\Azure-Samples**
71-
1. If you use Visual Studio 2019, open the solution in Visual Studio (optional).
72-
1. Edit the **appsettings.json** file. Find `ClientId` and update the value of `ClientId` with the **Application (client) ID** value of the application you registered.
62+
> [!div renderon="docs"]
63+
> [Download the Visual Studio 2019 solution](https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/archive/aspnetcore2-2.zip)
7364
74-
```json
75-
"ClientId": "Enter_the_Application_Id_here"
76-
"TenantId": "Enter_the_Tenant_Info_Here"
77-
```
65+
> [!div class="sxs-lookup" renderon="portal"]
66+
> Run the project using Visual Studio 2019.
67+
> [!div renderon="portal" id="autoupdate" class="nextstepaction"]
68+
> [Download the code sample]()
7869
70+
> [!div class="sxs-lookup" renderon="portal"]
71+
> #### Step 3: Your app is configured and ready to run
72+
> We have configured your project with values of your app's properties and it's ready to run.
7973
> [!div class="sxs-lookup" renderon="portal"]
8074
> > [!NOTE]
81-
> > This quickstart supports Enter_the_Supported_Account_Info_Here.
75+
> > Enter_the_Supported_Account_Info_Here
76+
> [!div renderon="docs"]
77+
> #### Step 3: Run your Visual Studio project
78+
> 1. Extract the zip file to a local folder within the root folder - for example, **C:\Azure-Samples**
79+
> 1. Open the solution in Visual Studio
80+
> 1. Edit the **appsettings.json** file. Find `ClientId` and update the value of `ClientId` with the **Application (client) ID** value of the application you registered.
81+
>
82+
> ```json
83+
> "ClientId": "Enter_the_Application_Id_here"
84+
> "TenantId": "Enter_the_Tenant_Info_Here"
85+
> ```
86+
87+
8288
8389
> [!div renderon="docs"]
8490
> Where:
@@ -95,6 +101,9 @@ In this quickstart, you'll learn how an ASP.NET Core web app can sign in persona
95101
96102
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 Core application.
97103
104+
### How the sample works
105+
![Shows how the sample app generated by this quickstart works](media/quickstart-v2-aspnet-core-webapp/aspnetcorewebapp-intro.svg)
106+
98107
### Startup class
99108
100109
*Microsoft.AspNetCore.Authentication* middleware uses a Startup class that is executed when the hosting process initializes:
@@ -161,4 +170,4 @@ Check out the GitHub repo for this ASP.NET Core tutorial for more information in
161170
Help us improve the Microsoft identity platform. Tell us what you think by completing a short two-question survey.
162171

163172
> [!div class="nextstepaction"]
164-
> [Microsoft identity platform survey](https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbRyKrNDMV_xBIiPGgSvnbQZdUQjFIUUFGUE1SMEVFTkdaVU5YT0EyOEtJVi4u)
173+
> [Microsoft identity platform survey](https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbRyKrNDMV_xBIiPGgSvnbQZdUQjFIUUFGUE1SMEVFTkdaVU5YT0EyOEtJVi4u)

0 commit comments

Comments
 (0)