What are the authentication methods in .NET?

There are 4 types of authentications.
1.WINDOWS AUTHENTICATION
2.FORMS AUTHENTICATION
3.PASSPORT AUTHENTICATION
4.NONE/CUSTOM AUTHENTICATION

The authentication option for the ASP.NET application is specified by using the tag in the Web.config file, as shown below:
other authentication options
1. WINDOWS AUTHENTICATION Schemes
I. Integrated Windows authentication
II. Basic and basic with SSL authentication
III. Digest authentication
IV. Client Certificate authentication

2. FORMS AUTHENTICATION
You, as a Web application developer, are supposed to develop the Web page and authenticate the user by checking the provided user ID and password against some user database

3.PASSPORT AUTHENTICATION
A centralized service provided by Microsoft, offers a single logon point for clients. Unauthenticated users are redirected to the Passport site

4 NONE/CUSTOM AUTHENTICATION:
If we don’t want ASP.NET to perform any authentication, we can set the authentication mode to “none”. The reason behind this decision could be: We don’t want to authenticate our users, and our Web site is open for all to use. We want to provide our own custom authentication


Comments

Author: Phagu Mahato02 Mar 2014 Member Level: Gold   Points : 7

Authentication Methods :ASP. NET provides different methods to authenticate a user:

Certificate Authentication
Passport Authentication
Forms Authentication
Anonymous Authentication
Basic Authentication
Digest Authentication
Integrated Windows Authentication
Using Cookies


public string UseService (string Key, string ServiceName)
{
string [] HashArray;
string Uname, level;


HashArray=Key.Split('|');
level = "-1"; //default level

if (TestHash(HashArray[0], HashArray[1], 0, ServiceName))
{
try
{
Uname=HashArray[1];

switch (Uname)
{
case "MyUname":
level="1";
break;
case "OtherUser":
level="2";
break;
default:
level="-1";
break;
}
if (level=="1") return "YOU ARE AUTHORIZED";
}
catch (Exception exc)
{
return "Authentication failure: " + exc.ToString();
}
}
return "Authentication failure";
}



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: