Implementing ASP.NET Authentication

Authentication is one of the primary features in the Web application's security. There are three ways to implement authentication in an ASP.NET Web application with the help of ASP.NET authentication providers:[5] Forms authentication, Passport authentication, and Windows authentication. To facilitate an authentication provider for an ASP.NET application, you have to configure the <mode> attribute of the <authentication> element in the application configuration file as follows:

[5] Authentication providers are nothing but the code modules that contain the essential code to authenticate the requester's credentials.

 // Web.config file: <authentication mode = "[Windows/Forms/Passport/None]"> </authentication> ...

Get .NET Security and Cryptography now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.