-
Book Overview & Buying
-
Table Of Contents
ASP.NET Web API Security Essentials
By :
Let's create an empty Web API template to integrate ASP.NET Identity. Follow the given steps:
Create New Project from the Start page in Visual Studio.
Select Visual C# Installed Template named Web.
Select ASP.NET Web Application in the center pane.
Name the project ContactLookupOwin and click OK:

Fig 1 – We have named the ASP.NET Web Application as "ContactLookupOwin"
Select the Empty template in the New ASP.NET Project dialog and click OK:

Fig 2 – Select Empty template for Application "ContactLookupOwin"
Install NuGet packages for the OWIN server that enables OWIN-based applications to run on IIS using the ASP.NET request pipeline:

Fig 3 – Installed NuGet package "Microsoft.Owin.Host.SystemWeb"
Right-click on Project and select Add New Item in the ContactLookupOwin project. Then, select the OWIN startup class in the center pane and name the class file OwinStartup.cs:

Fig 4 – Added OWIN startup class file named "OwinStartup.cs"
Replace the...
Change the font size
Change margin width
Change background colour