-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
ASP.NET Web API Security Essentials
By :
Internet Information Services(IIS) enables authenticating the user based on their Windows credentials. So it is necessary that the user must have a domain server account. Basic authentication in IIS is built to authenticate using the Windows credentials.
The following steps will enable basic authentication using IIS:
Open your ASP.NET Application from the Start page in Visual Studio.
Open the Web.config file.
Set authentication mode to Windows in the Web.config file:
<system.web><authentication mode="Windows" /></system.web>
Open IIS Manager.
Go to Features View.
Select Authentication in IIS Manger:

Fig 1 – Select authentication in features view
Disable Anonymous Authentication and enable Basic Authentication:

Fig 2 – Right-click and enable basic authentication
If you don't find Basic Authentication under Authentication, go to Programs and Features, turn on or off Windows Components, and enable Basic Authentication under IIS | World...
Change the font size
Change margin width
Change background colour