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

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.)
25
21
> [!div renderon="docs"]
26
22
> ## Register and download your quickstart app
27
23
> 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
61
57
62
58
#### Step 2: Download your project
63
59
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)
> #### 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
67
74
68
75
1. Extract the zip file to a local folder closer to the root folder - for example, **C:\Azure-Samples**
69
76
1. Open the solution in Visual Studio (AppModelv2-WebApp-OpenIDConnect-DotNet.sln)
70
77
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**
71
78
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:
> - `Enter_the_Application_Id_here` - is the Application Id for the application you registered.
85
88
> - `Enter_the_Tenant_Info_Here` - is one of the options below:
86
89
> - 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
91
94
> > - To find the values of *Application ID*, *Directory (tenant) ID*, and *Supported account types*, go to the **Overview** page
92
95
> > - 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)
93
96
97
+
> [!div class="sxs-lookup" renderon="portal"]
98
+
> > [!NOTE]
99
+
> > Enter_the_Supported_Account_Info_Here
100
+
94
101
## More information
95
102
96
103
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.
97
104
105
+
### How the sample works
106
+

107
+
98
108
### OWIN middleware NuGet packages
99
109
100
110
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