Click or drag to resize
AuthenticationHelper Class
Contains method connected with user authentication
Inheritance Hierarchy
SystemObject
  CMS.MembershipAuthenticationHelper

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public static class AuthenticationHelper

The AuthenticationHelper type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberDEFAULT_LOGON_PAGE
URL to default logon page.
Public fieldStatic memberPASSWORD_EXPIRATION_LOCK
Setting value for locking user account to user with expired password
Top
Properties
  NameDescription
Public propertyStatic memberADConnectionStringName
Name of connection string used by AD membership provider.
Public propertyStatic memberADPassword
Password of user used to authenticate against AD by membership provider.
Public propertyStatic memberADUsername
Name of user used to authenticate against AD by membership provider.
Public propertyStatic memberFederationAuthentication
Gets or sets whether federation authentication is used.
Public propertyStatic memberGlobalPublicUser
Global public user object.
Public propertyStatic memberImportExternalRoles
If true, the system imports the external user roles.
Public propertyStatic memberImportExternalUsers
If true, the system imports the external users.
Public propertyStatic memberImportWindowsRoles
Gets or sets whether roles are imported during the Windows/Active directory authentication.
Public propertyStatic memberNetBiosDomainName
Get domain name in NetBios format
Public propertyStatic memberPrincipalContext
Encapsulates the server or domain against which all operations are performed.
Public propertyStatic memberSynchronizeUserGUIDs
Indicates whether to synchronize user's guid during import from Active Directory.
Public propertyStatic memberUseSessionCookies
If true, the session cookies will be used for the authentication.
Top
Methods
  NameDescription
Public methodStatic memberAddUserToKicked
Adds user to kicked.
Public methodStatic memberAuthenticateFacebookConnectUser
Authenticate user with provided Facebook Connect parameters. Create new user if createNew is set to TRUE and user doesn't exist in DB.
Public methodStatic memberAuthenticateLinkedInUser
Authenticates user with LinkedID parameters. It will create new user if not found in DB.
Public methodStatic memberAuthenticateOpenIDUser
Authenticate user with provided OpenID parameters. Create new user if createNew is set to TRUE and user doesn't exist in DB.
Public methodStatic memberAuthenticateUser(String, Boolean, Boolean)
Authenticate given user.
Public methodStatic memberAuthenticateUser(String, String, String, Boolean, AuthenticationSourceEnum)
Authenticates user against the database.
Public methodStatic memberAuthenticateUserAD
Authenticates user against the database.
Public methodStatic memberAuthenticateWindowsLiveUser
Authenticates the Windows Live user with user's LiveID. If user doesn't exists yet and createNew set to true, then it is created.
Public methodStatic memberCancelImpersonation
Signs out the impersonated user and switches to the original user.
Public methodStatic memberCanUserLogin
Checks if given user can login to system.
Public methodStatic memberCheckInvalidPasswordAttempts
Check if logging invalid password attempts is enabled and if so, invalid attempt counter is incremented and if user exceeded maximal number of invalid attempts, her account is locked
Public methodStatic memberCheckPasswordExpiration
Check if user password is expired and optionally according to settings lock expired password account.
Public methodStatic memberDisplayAccountLockInformation
Indicates if additional info about account lock should be displayed
Public methodStatic memberEnsureExternalUser
Ensures that the external user record is present in the database.
Public methodStatic memberExtendAuthenticationCookieExpiration
Sets the authentication cookie expiration
Public methodStatic memberFinalizeAuthenticationProcess
Finalizes the authentication process. Does all the actions that are needed after successful authentication.
Public methodStatic memberForgottenEmailRequest
Tries to find user based on email address and if it finds the user, a password reset link is sent.
Public methodStatic memberGetDomainSamAccountName
Get domain name in NetBiosDomainName\SamAccountName
Public methodStatic memberGetKickedUsers
Returns ID's of kicked users in string in format: ID1,ID2 ...
Public methodStatic memberGetPolicyViolationMessage
Returns a message that the entered password doesn't meet the defined password policy.
Public methodStatic memberGetRegistrationApprovalUrl
Gets URL for user registration approval page (Page where user is required to confirm his registration).
Public methodStatic memberGetResetPasswordUrl
Returns URL of page where user can reset his password.
Public methodStatic memberGetSecuredAreasLogonPage
Returns value of CMSSecuredAreasLogonPage setting key, or returns default logon URL if this setting key is empty.
Public methodStatic memberGetUnlockAccountUrl
Returns URL of page where user can unlock her account.
Public methodStatic memberGetUserADRoles
Gets the user roles from AD.
Public methodStatic memberGetUserAuthenticationUrl
Prepares the user authentication GUID, adds it as a query string parameter to supplied Url.
Public methodStatic memberGetUserDataFromAuthCookie
Returns an array with userdata from authentication cookie.
Public methodStatic memberGetUserWindowsRoles
Gets the user roles.
Public methodStatic memberHandleAdminEmergencyReset
Handles admin emergency reset
Public methodStatic memberHandleAutomaticSignIn
Check URL query string for authentication parameter and authenticate user.
Public methodStatic memberImpersonateUser
Impersonates current user.
Public methodStatic memberIsAuthenticated
Returns true if the current user is authenticated.
Public methodStatic memberIsAuthenticationRedirect
Checks whether request is being redirected to a logon page.
Public methodStatic memberIsPasswordExpirationEnabled
Indicates if password expiration is enabled
Public methodStatic memberMaximumInvalidPasswordAttemps
Gets limit of invalid password attempts before user account is locked
Public methodStatic memberNotifyAdministrator
Sends notification e-mail to administrator about user registration.
Public methodStatic memberRemoveExpiredKickedUsers
Removes expired records from KickUsers hashtable.
Public methodStatic memberRemoveSessionID
Removes cookie with session ID which enforces ASP.NET to generate new session ID if RenewSessionAuthChange property is set to true.
Public methodStatic memberRemoveUserFromKicked
Removes user from kicked.
Public methodStatic memberResetPassword
Resets password for user based on his request.
Public methodStatic memberSendPasswordRequest
Sends e-mail to user for approval request of new password.
Public methodStatic memberSendPasswordResetConfirmation
Sends a confirmation e-mail informing the user about a recent password change.
Public methodStatic memberSendRegistrationEmails
Sends registration emails. Returns string with error if any exception occurred.
Public methodStatic memberSendUnlockAccountRequest
Sends e-mail to user to inform her about her account was locked due to reaching maximum invalid logon attempts.
Public methodStatic memberSetAuthCookieWithUserData
Creates authentication cookie of user with specified custom data.
Public methodStatic memberSetWindowsUserCultures
Sets preferred cultures for a windows user
Public methodStatic memberSignOut(String)
Signs the user out.
Public methodStatic memberSignOut(String)
Signs the user out.
Public methodStatic memberUnlockUserAccount
Unlock specified user account
Public methodStatic memberUpdateLastLogonInformation
Updates last logon information of user = last logon time, IP address and agent. Doesn't call SetUserInfo!!
Public methodStatic memberUserKicked
Checks whether the given user is kicked or not.
Public methodStatic memberValidateResetPassword
Validates request of password reset.
Top
See Also