DatabaseAuthenticationProvider Methods |
The DatabaseAuthenticationProvider type exposes the following members.
Name | Description | |
---|---|---|
Authenticate(String, Int64) |
The implementing class should authenticate the user using the provided token, create and populate a UserContext object
adding profiles when an item in the profileRoles collection is supported for this user. If the authentication
fails, the implementing class can return a null UserContext object or throw a custom exception.
(Inherited from GenericAuthenticationProvider.) | |
Authenticate(String, String, NameValueCollection, Int64) |
This class authenticates the user always, regardless of the user or password.
(Inherited from GenericAuthenticationProvider.) | |
ChangePassword |
Changes the password for the user.
Use ChangeUserPassword(IAppContext, String, String, String) if you need the new password in a form (raw vs. encrypted)
for storing in Password.
(Overrides GenericAuthenticationProviderChangePassword(IAppContext, String, String, String).) | |
ChangeUserPassword |
Changes the password for the user.
Performs the same functionality as ChangePassword(IAppContext, String, String, String) except that it returns
the new password (raw for two-way encryptions, encrypted for one-way encryptions) as
is appropriate for storing in Password.
(Overrides GenericAuthenticationProviderChangeUserPassword(IAppContext, String, String, String).) | |
EncryptPassword |
Encrypt the specified password using the specified encryption algorithm, or, if one is not specified,
using the application's encryption method.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetText |
Helper method for getting localized error messages.
(Inherited from GenericAuthenticationProvider.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUsersDataSource |
Gets the database used for user authentication.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnAuthenticate |
Authenticates the user, creates and populates a UserContext object
adding profiles when an item in the profileRoles collection is supported for this user.
This implementation uses NTLM authentication (without a domain specified), then creates a WindowsIdentity object
and a WindowsPrincipal object and uses the WindowsPrincipal.IsInRole method to validate if the user is in the
specified role.
(Overrides GenericAuthenticationProviderOnAuthenticate(String, String, NameValueCollection, Int64).) | |
ResetPassword |
Sets the password to null, sets the ForcePasswordChange attribute on the user
and (optionally) sends the user a way to reset it via email.
(Overrides GenericAuthenticationProviderResetPassword(IAppContext, UserContext, Boolean, String).) | |
Restore |
Restore the user context from a user id. Used when a password is lost and you want to
send the user a new password.
(Overrides GenericAuthenticationProviderRestore(IAppContext, String, String).) | |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |