User Id :    Password :      New Member   Forgot Password  
Topic: Type of Authentications?
Sachin Jain
11 Oct 2010 at 04:49 AM
Type of Authentications?
Re: Type of Authentications?
Gaurav
11 Oct 2010 at 10:57 PM

ASP.NET actually supports four types of authentication:

1.Windows authentication
2.Forms authentication
3.Passport authentication
4.Anonymous access

1.Windows authentication
If your application is targeted for use inside an organization, and users accessing the application have existing user accounts within the local user database of the Web server or Active Directory, you should authenticate users with Windows authentication.

2.Forms authentication
By default, Form authentication is used.
Form-based authentication presents the user with an HTML-based Web page that prompts the user for credentials.

3.Passport authentication
You can also authenticate users using a service from Microsoft called Passport. Passport is a centralized directory of user information that Web sites can use, in exchange for a fee, to authenticate users. Users can choose to allow the Web site access to personal
information stored on Passport, such as the users’ addresses, ages, and interests. 

4.Anonymous access
You can explicitly disable authentication for your application if you know that it will be used only by anonymous users.
<configuration>
<system.web>
<authentication mode="None" />
</system.web>
</configuration>
Re: Type of Authentications?
Sakthivel
04 Oct 2012 at 11:08 AM

There are three ways of doing authentication in ASP.NET:-


Windows authentication: - In this methodology ASP.NET web pages will use local windows users and groups to authenticate and authorize resources.

Forms Authentication: - This is a cookie based authentication where username and password are stored on client machines as cookie files or they are sent through URL for every request. Form-based authentication presents the user with an HTML-based Web page that prompts the user for credentials.

• Passport authentication :- Passport authentication is based on the passport website provided
by the Microsoft .So when user logins with credentials it will be reached to the passport website ( i.e. hotmail,devhood,windows live etc) where authentication will happen. If Authentication is successful it will return a token to your website.

Anonymous access: - If you do not want any kind of authentication then you will go for Anonymous access.

GenericPrincipal and GenericIdentity objects represent users who have been authenticated using Forms authentication or other custom authentication mechanisms. With these objects, the role list is obtained in a custom manner, typically from a database.
FormsIdentity and PassportIdentity objects represent users who have been authenticated with Forms and Passport authentication respectively.

Total Replies: 2
 
Featured Text Ad

Featured Ad