Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
System.Web.Security Namespace

Updated: November 2007

The System.Web.Security namespace contains classes that are used to implement ASP.NET security in Web server applications.

The Membership class is used by ASP.NET applications to validate user credentials and manage user settings such as passwords and e-mail addresses. The Roles class enables you to manage authorization for your application based on groups of users assigned to roles in the Web application.

Both the Membership class and the Roles class work with providers, classes that access your application's data store to retrieve membership and role information. Membership and role information can be stored in a Microsoft SQL Server database using the SqlMembershipProvider and SqlRoleProvider classes; in an Active Directory using the ActiveDirectoryMembershipProvider and AuthorizationStoreRoleProvider classes, or in a custom data source using implementations of the MembershipProvider and RoleProvider classes.

You configure ASP.NET membership using the membership Element (ASP.NET Settings Schema). When an application using membership is accessed, ASP.NET creates an instance of the Membership class that you can use to query membership information. Provider-specific implementations of the MembershipUser class contain information about the user accessing the page. You can create custom implementations of the MembershipUser class for your application.

You configure ASP.NET roles using the roleManager Element (ASP.NET Settings Schema). ASP.NET creates an instance of the Roles class that contains information about the role membership of the current user.

ASP.NET provides server controls that interact with the Membership class and the Roles class. The Login, CreateUserWizard, and ChangePassword controls work with the Membership class to simplify creating an authenticated Web application, and the LoginView control uses role-specific templates to customize Web pages for specific groups of users.

  ClassDescription
kt5ssstk.pubclass(en-us,VS.90).gifActiveDirectoryMembershipProvider Manages storage of membership information for an ASP.NET application in Active Directory and Active Directory Application Mode servers.
kt5ssstk.pubclass(en-us,VS.90).gifActiveDirectoryMembershipUser Exposes and updates membership user information stored in an Active Directory data store.
kt5ssstk.pubclass(en-us,VS.90).gifAnonymousIdentificationEventArgs Provides data for the AnonymousIdentification_Creating event. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifAnonymousIdentificationModule Manages anonymous identifiers for the ASP.NET application.
kt5ssstk.pubclass(en-us,VS.90).gifAuthorizationStoreRoleProvider Manages storage of role-membership information for an ASP.NET application in an authorization-manager policy store, either in an XML file, in an Active Directory, or on an Active Directory Application Mode server.
kt5ssstk.pubclass(en-us,VS.90).gifDefaultAuthenticationEventArgs Provides data for the DefaultAuthentication_OnAuthenticate event. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifDefaultAuthenticationModule Ensures that an authentication object is present in the context. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifFileAuthorizationModule Verifies that the user has permission to access the file requested. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifFormsAuthentication Manages forms-authentication services for Web applications. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifFormsAuthenticationEventArgs Provides data for the FormsAuthentication_OnAuthenticate event. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifFormsAuthenticationModule Sets the identity of the user for an ASP.NET application when forms authentication is enabled. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifFormsAuthenticationTicket Provides access to properties and values of the ticket used with forms authentication to identify users. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifFormsIdentity Represents a user identity authenticated using forms authentication. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifMembership Validates user credentials and manages user settings. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifMembershipCreateUserException The exception that is thrown when a user is not successfully created by a membership provider.
kt5ssstk.pubclass(en-us,VS.90).gifMembershipPasswordException The exception that is thrown when a password cannot be retrieved from the password store.
kt5ssstk.pubclass(en-us,VS.90).gifMembershipProvider Defines the contract that ASP.NET implements to provide membership services using custom membership providers.
kt5ssstk.pubclass(en-us,VS.90).gifMembershipProviderCollection A collection of objects that inherit the MembershipProvider abstract class.
kt5ssstk.pubclass(en-us,VS.90).gifMembershipUser Exposes and updates membership user information in the membership data store.
kt5ssstk.pubclass(en-us,VS.90).gifMembershipUserCollection A collection of MembershipUser objects.
kt5ssstk.pubclass(en-us,VS.90).gifPassportAuthenticationEventArgs The event argument passed to the Authenticate event by a PassportAuthenticationModule. Since there is already an identity at this point, this is useful mainly for attaching a custom IPrincipal object to the context using the supplied identity. This class is deprecated.
kt5ssstk.pubclass(en-us,VS.90).gifPassportAuthenticationModule Provides a wrapper around Passport Authentication services. This class cannot be inherited. This class is deprecated.
kt5ssstk.pubclass(en-us,VS.90).gifPassportIdentity Provides a class to be used by PassportAuthenticationModule. It provides a way for an application to access the Ticket method. This class cannot be inherited. This class is deprecated.
kt5ssstk.pubclass(en-us,VS.90).gifPassportPrincipal Represents a Passport-authenticated principal. This class is deprecated.
kt5ssstk.pubclass(en-us,VS.90).gifRoleManagerEventArgs Provides event data for the GetRoles event of the RoleManagerModule class.
kt5ssstk.pubclass(en-us,VS.90).gifRoleManagerModule Manages a RolePrincipal instance for the current user. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifRolePrincipal Represents security information for the current HTTP request, including role membership. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifRoleProvider Defines the contract that ASP.NET implements to provide role-management services using custom role providers.
kt5ssstk.pubclass(en-us,VS.90).gifRoleProviderCollection A collection of objects that inherit the RoleProvider abstract class.
kt5ssstk.pubclass(en-us,VS.90).gifRoles Manages user membership in roles for authorization checking in an ASP.NET application. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifSqlMembershipProvider Manages storage of membership information for an ASP.NET application in a SQL Server database.
kt5ssstk.pubclass(en-us,VS.90).gifSqlRoleProvider Manages storage of role membership information for an ASP.NET application in a SQL Server database.
kt5ssstk.pubclass(en-us,VS.90).gifUrlAuthorizationModule Verifies that the user has permission to access the URL requested. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifValidatePasswordEventArgs Provides event data for the ValidatingPassword event of the MembershipProvider class.
kt5ssstk.pubclass(en-us,VS.90).gifWindowsAuthenticationEventArgs Provides data for the WindowsAuthentication_OnAuthenticate event. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifWindowsAuthenticationModule Sets the identity of the user for an ASP.NET application when Windows authentication is enabled. This class cannot be inherited.
kt5ssstk.pubclass(en-us,VS.90).gifWindowsTokenRoleProvider Gets role information for an ASP.NET application from Windows group membership.
  DelegateDescription
kt5ssstk.pubdelegate(en-us,VS.90).gifAnonymousIdentificationEventHandler Represents the method that handles the AnonymousIdentification_Creating event of a AnonymousIdentificationModule.
kt5ssstk.pubdelegate(en-us,VS.90).gifDefaultAuthenticationEventHandler Represents the method that handles the DefaultAuthentication_OnAuthenticate event of a DefaultAuthenticationModule.
kt5ssstk.pubdelegate(en-us,VS.90).gifFormsAuthenticationEventHandler Represents the method that handles the FormsAuthentication_OnAuthenticate event of a FormsAuthenticationModule.
kt5ssstk.pubdelegate(en-us,VS.90).gifMembershipValidatePasswordEventHandler Represents the method that will handle the ValidatingPassword event of the MembershipProvider class.
kt5ssstk.pubdelegate(en-us,VS.90).gifPassportAuthenticationEventHandler Represents the method that handles the PassportAuthentication_OnAuthenticate event of a PassportAuthenticationModule. This class is deprecated.
kt5ssstk.pubdelegate(en-us,VS.90).gifRoleManagerEventHandler Defines the delegate for the GetRoles event of the RoleManagerModule class.
kt5ssstk.pubdelegate(en-us,VS.90).gifWindowsAuthenticationEventHandler Represents the method that handles the WindowsAuthentication_OnAuthenticate event of a WindowsAuthenticationModule.
  EnumerationDescription
kt5ssstk.pubenumeration(en-us,VS.90).gifActiveDirectoryConnectionProtection Specifies the connection protection options supported by the ActiveDirectoryMembershipProvider class.
kt5ssstk.pubenumeration(en-us,VS.90).gifCookieProtection Describes how information in a cookie is protected.
kt5ssstk.pubenumeration(en-us,VS.90).gifMembershipCreateStatus Describes the result of a CreateUser operation.
kt5ssstk.pubenumeration(en-us,VS.90).gifMembershipPasswordFormat Describes the encryption format for storing passwords for membership users.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker