Forms-based authentication provides custom identity management in SharePoint Foundation by implementing a membership provider, which defines interfaces for identifying and authenticating individual users, and a role manager, which defines interfaces for grouping individual users into logical groups or roles. In SharePoint Foundation, a membership provider must implement the required System.Web.Security.Membership.ValidateUser method. Given a user name, the role provider system returns a list of roles to which the user belongs.
The membership provider is responsible for validating the credential information by using the System.Web.Security.Membership.ValidateUser method (required now in SharePoint Foundation). However, the actual user token is created by the security token service (STS). The STS creates the user token from the user name validated by the membership provider and from the set of group memberships associated with the user name that are provided by the membership provider.
The role manager is optional. If a custom authentication system does not support groups, a role manager is not necessary. SharePoint Foundation supports one membership provider and one role manager per URL zone (SPUrlZone). The ASP.NET forms roles have no inherent rights associated with them. Instead, SharePoint Foundation assigns rights to the forms roles through its policies and authorization. In SharePoint Foundation, the forms-based authentication is integrated with the claims-based identity model. If you need additional augmentation to bypass the limit of having one role provider per URL Zone, you can rely on claims providers.
In ASP.NET membership and role passive sign-in, the sign-in happens by redirecting the client to a Web page where the ASP.NET log-in controls are hosted. After the identity object that represents a user identity is created, SharePoint Foundation 2010 converts it to a ClaimsIdentity object (which represents a claims-based representation of a user).
SharePoint Foundation consumes the standard ASP.NET 2.0 role provider interface to gather group information about the current user. For authentication purposes, roles and groups are the same thing: a way of grouping users into logical sets for authorization. Each ASP.NET role is treated as a domain group by SharePoint Foundation.
For information about the pluggable authentication framework provided by ASP.NET, see New Security Features in ASP.NET 2.0.