You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
25
-
26
-

24
+
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.)
27
25
28
26
> [!div renderon="docs"]
29
27
> ## Register and download your quickstart app
@@ -66,22 +64,32 @@ In this quickstart, you'll learn how an ASP.NET Core web app can sign in persona
66
64
67
65
#### Step 2: Download your ASP.NET Core project
68
66
69
-
-[Download the Visual Studio 2019 solution](https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/archive/aspnetcore2-2.zip)
70
-
71
-
#### Step 3: Configure your Visual Studio project
67
+
> [!div renderon="docs"]
68
+
> [Download the Visual Studio 2019 solution](https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/archive/aspnetcore2-2.zip)
72
69
73
-
1. Extract the zip file to a local folder within the root folder - for example, **C:\Azure-Samples**
74
-
1. If you use Visual Studio 2019, open the solution in Visual Studio (optional).
75
-
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.
> #### Step 3: Your app is configured and ready to run
77
+
> We have configured your project with values of your app's properties.
78
+
79
+
[!div renderon="docs"]
80
+
> #### Step 3: Run your Visual Studio project
81
+
> 1. Extract the zip file to a local folder within the root folder - for example, **C:\Azure-Samples**
82
+
> 1. Open the solution in Visual Studio
83
+
> 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.
84
+
>
85
+
> ```json
86
+
> "ClientId": "Enter_the_Application_Id_here"
87
+
> "TenantId": "Enter_the_Tenant_Info_Here"
88
+
> ```
81
89
82
90
> [!div class="sxs-lookup" renderon="portal"]
83
91
> > [!NOTE]
84
-
> > This quickstart supports Enter_the_Supported_Account_Info_Here.
92
+
> > Enter_the_Supported_Account_Info_Here
85
93
86
94
> [!div renderon="docs"]
87
95
> Where:
@@ -98,6 +106,9 @@ In this quickstart, you'll learn how an ASP.NET Core web app can sign in persona
98
106
99
107
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.
100
108
109
+
### How the sample works
110
+

111
+
101
112
### Startup class
102
113
103
114
*Microsoft.AspNetCore.Authentication* middleware uses a Startup class that is executed when the hosting process initializes:
@@ -164,4 +175,4 @@ Check out the GitHub repo for this ASP.NET Core tutorial for more information in
164
175
Help us improve the Microsoft identity platform. Tell us what you think by completing a short two-question survey.
0 commit comments