-
Book Overview & Buying
-
Table Of Contents
ASP.NET Web API Security Essentials
By :
Let's implement Windows authentication to an ASP.NET MVC application following the given steps:
Create New Project from the Start page in Visual Studio.
Select Visual C# Installed Template named Web.
Choose ASP.NET Web Application in the center panel.
Name the project Chapter06.WindowsAuthentication and click OK:

Fig 5 – We have named the ASP.NET Web Application "Chapter06.WindowsAuthentication"
Change the Authentication mode to Windows Authentication:

Fig 6 – Select Windows Authentication in Change Authentication window
Select the MVC template in the New ASP.NET Project dialog.
Tick Web API under Add folders and core references and click OK:

Fig 7 – Select MVC template and check Web API in add folders and core references
Under the Models folder, add a class named Contact.cs with the following code:
namespace Chapter06.FormsAuthentication.Models
{
public class Contact
{
public int Id { get; set; }
public string Name { get; set; }
...
Change the font size
Change margin width
Change background colour