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: 13.0.131
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 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 memberCancelImpersonation
Signs out the impersonated user and switches to the original user.
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 memberGetPolicyViolationMessage
Returns a message that the entered password doesn't meet the defined password policy.
Public methodStatic memberGetResetPasswordUrl
Returns URL of page where user can reset his password.
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
Gets authentication URL for automatic sign-in.
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 token 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 memberRegenerateAuthenticationGuid
Invalidates JSON Web Token by regenerating UserAuthenticationGUID value.
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 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 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 memberValidateResetPassword
Validates request of password reset.
Top
See Also