Basic Authentication in ASP.NET Web API

How do I create a user Account for Basic Authentication?

How To Configure Basic Authentication in IIS ?
The basic authentication requires using a valid user name and password to access content. It supports all the browsers and it also works for all proxy services and firewalls.

Types of Proxies -
1.     Transparent Proxies
2.     Anonymous Proxies
3.     Highly anonymous Proxies
4.     Socks 4 and 5 Proxies
5.     DNS Proxies
6.     And so on

Steps To use the UI -
1.     Open IIS Manager
2.     Double click Authentication Tab
3.     Select Basic Authentication
4.     Click to Enable to use Basic authentication with the default settings
5.     Click to Edit to type the default domain and realm.
6.     In the Edit Basic Authentication Settings dialog box, in the Default domain text box, type a default domain or leave it blank.
7.     In the Realm text box, type a realm or leave it blank.
8.     Click OK to close the Edit Basic Authentication Settings dialog box.

Advantages -
1.     Internet standard
2.     Supported by all major browsers
3.     Relatively simple protocol

Disadvantages -
1.     The User credentials are sent in the every request as plaintext
2.     There are No way to log out except by closing the browser session

I hope you are enjoying with this post! Please share with you friends. Thank you!!

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog -
My Books - Book 1 and Book 2 Powered by Blogger.