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
# 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
-

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.)
25
21
> [!div renderon="docs"]
26
22
> ## Register and download your quickstart app
27
23
> 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
63
59
64
60
#### Step 2: Download your ASP.NET Core project
65
61
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)
> #### 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.
79
73
> [!div class="sxs-lookup" renderon="portal"]
80
74
> > [!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
+
82
88
83
89
> [!div renderon="docs"]
84
90
> Where:
@@ -95,6 +101,9 @@ In this quickstart, you'll learn how an ASP.NET Core web app can sign in persona
95
101
96
102
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.
97
103
104
+
### How the sample works
105
+

106
+
98
107
### Startup class
99
108
100
109
*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
161
170
Help us improve the Microsoft identity platform. Tell us what you think by completing a short two-question survey.
0 commit comments