Click or drag to resize
AuthenticationHelper Methods

The AuthenticationHelper type exposes the following members.

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 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 memberGetFormsAuthenticationUserName Obsolete.
Checks whether the supplied forms authentication cookie is valid. If the cookie is valid, returns name of the authenticated user. Otherwise returns null. Contains check for BannedIPs Login level.
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 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 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 memberSendPassword Obsolete.
Sends given user an email with forgotten/new password. (If the new password isn't provided current password is used for the plain text format or new password is generated for the SHA1/SHA2 format.)
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