DevForce Help Reference
Login Method (AspAuthenticatingLoginManager)


Authenticate the user.
Syntax
'Declaration
 
Public Function Login( _
   ByVal credential As ILoginCredential, _
   ByVal entityManager As EntityManager _
) As IPrincipal
'Usage
 
Dim instance As AspAuthenticatingLoginManager
Dim credential As ILoginCredential
Dim entityManager As EntityManager
Dim value As IPrincipal
 
value = instance.Login(credential, entityManager)

Parameters

credential
entityManager
Remarks
If the credential parameter is null then a non-credential authentication will be attempted. If you are using Windows authentication you should pass a null credential to the IdeaBlade.EntityModel.Security.Authenticator.Login. The HttpContext.Current.User information will be used to build a IdeaBlade.EntityModel.UserBase representing the current user.

To perform Forms authentication pass a credential, such as the IdeaBlade.EntityModel.FormsAuthenticationLoginCredential, to your login method on the EntityManager.

If the user fails authentication and anonymous logins are not supported a IdeaBlade.EntityModel.LoginException is thrown.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AspAuthenticatingLoginManager Class
AspAuthenticatingLoginManager Members

Send Feedback