Friday 11 April 2014

What are various ways of authentication techniques in ASP.NET?


There are 3 major ways of doing authentication.
  1. Windows
  2. Forms
  3. Passport
  1. Windows
In this mode the user are stored in windows local user groups.
In web.config file show below
Forms

In this mode we can create a login screen and use the forms authentication classs to do validations .It's ticket based authentication.

In web.config file show below


In Default.aspx.cs file show below
using system namespace:




Output:

when you apply User Name 123 and Password abc then open login page show below

Passport:
 In this mode the users are validated from Microsoft sites like hotmail,MSN etc, ticket is generated and that ticket can be used to do authentication and authorization in your web application.

0 comments:

Post a Comment