Click or drag to resize

WindowsAuthenticationProvider Methods

The WindowsAuthenticationProvider type exposes the following members.

Methods
  NameDescription
Public methodAuthenticate(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.)
Public methodAuthenticate(String, String, NameValueCollection, Int64)
This class authenticates the user always, regardless of the user or password.
(Inherited from GenericAuthenticationProvider.)
Public methodChangePassword
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.
(Inherited from GenericAuthenticationProvider.)
Public methodChangeUserPassword
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.
(Inherited from GenericAuthenticationProvider.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetText
Helper method for getting localized error messages.
(Inherited from GenericAuthenticationProvider.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnAuthenticate
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).)
Public methodResetPassword
Sets the password to null, sets the ForcePasswordChange attribute on the user and (optionally) sends the user a way to reset it via email.
(Inherited from GenericAuthenticationProvider.)
Public methodRestore
Restore the user context from a user id. Used when a password is lost and you want to send the user a new password.
(Inherited from GenericAuthenticationProvider.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
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.)
Top
See Also