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

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.)
27
25
28
26
> [!div renderon="docs"]
29
27
> ## 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
64
62
65
63
#### Step 2: Download your project
66
64
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)
68
67
69
-
#### Step 3: Configure your Visual Studio project
68
+
> [!div renderon="portal"]
69
+
> Run the project using Visual Studio or your favorite editor
> #### 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
70
79
71
80
1. Extract the zip file to a local folder closer to the root folder - for example, **C:\Azure-Samples**
72
81
1. Open the solution in Visual Studio (AppModelv2-WebApp-OpenIDConnect-DotNet.sln)
73
82
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**
74
83
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:
> - `Enter_the_Application_Id_here` - is the Application Id for the application you registered.
88
93
> - `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
94
99
> > - To find the values of *Application ID*, *Directory (tenant) ID*, and *Supported account types*, go to the **Overview** page
95
100
> > - 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)
96
101
102
+
> [!div class="sxs-lookup" renderon="portal"]
103
+
> > [!NOTE]
104
+
> > This quickstart supports Enter_the_Supported_Account_Info_Here.
105
+
97
106
## More information
98
107
99
108
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.
100
109
110
+
### How the sample works
111
+

112
+
101
113
### OWIN middleware NuGet packages
102
114
103
115
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