There are 3 major ways of doing authentication.
- Windows
- Forms
- Passport
- Windows
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