AuthenticationHelper Class |
Namespace: CMS.Membership
public static class AuthenticationHelper
The AuthenticationHelper type exposes the following members.
Name | Description | |
---|---|---|
DEFAULT_LOGON_PAGE |
URL to default logon page.
| |
PASSWORD_EXPIRATION_LOCK |
Setting value for locking user account to user with expired password
|
Name | Description | |
---|---|---|
ADConnectionStringName |
Name of connection string used by AD membership provider.
| |
ADPassword |
Password of user used to authenticate against AD by membership provider.
| |
ADUsername |
Name of user used to authenticate against AD by membership provider.
| |
FederationAuthentication |
Gets or sets whether federation authentication is used.
| |
GlobalPublicUser |
Global public user object.
| |
ImportExternalRoles |
If true, the system imports the external user roles.
| |
ImportExternalUsers |
If true, the system imports the external users.
| |
ImportWindowsRoles |
Gets or sets whether roles are imported during the Windows/Active directory authentication.
| |
NetBiosDomainName |
Get domain name in NetBios format
| |
PrincipalContext |
Encapsulates the server or domain against which all operations are performed.
| |
SynchronizeUserGUIDs |
Indicates whether to synchronize user's guid during import from Active Directory.
| |
UseSessionCookies |
If true, the session cookies will be used for the authentication.
|
Name | Description | |
---|---|---|
AuthenticateUser(String, Boolean, Boolean) |
Authenticate given user.
| |
AuthenticateUser(String, String, String, Boolean, AuthenticationSourceEnum) |
Authenticates user against the database.
| |
AuthenticateUserAD |
Authenticates user against the database.
| |
CancelImpersonation |
Signs out the impersonated user and switches to the original user.
| |
CheckInvalidPasswordAttempts |
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
| |
CheckPasswordExpiration |
Check if user password is expired and optionally according to settings lock expired password account.
| |
DisplayAccountLockInformation |
Indicates if additional info about account lock should be displayed
| |
EnsureExternalUser |
Ensures that the external user record is present in the database.
| |
ExtendAuthenticationCookieExpiration |
Sets the authentication cookie expiration
| |
FinalizeAuthenticationProcess |
Finalizes the authentication process. Does all the actions that are needed
after successful authentication.
| |
ForgottenEmailRequest |
Tries to find user based on email address and if it finds the user, a password reset link is sent.
| |
GetDomainSamAccountName |
Get domain name in NetBiosDomainName\SamAccountName
| |
GetPolicyViolationMessage |
Returns a message that the entered password doesn't meet the defined password policy.
| |
GetResetPasswordUrl |
Returns URL of page where user can reset his password.
| |
GetUnlockAccountUrl |
Returns URL of page where user can unlock her account.
| |
GetUserADRoles |
Gets the user roles from AD.
| |
GetUserAuthenticationUrl |
Gets authentication URL for automatic sign-in.
| |
GetUserDataFromAuthCookie |
Returns an array with userdata from authentication cookie.
| |
GetUserWindowsRoles |
Gets the user roles.
| |
HandleAdminEmergencyReset |
Handles admin emergency reset
| |
HandleAutomaticSignIn |
Check URL query string for authentication token and authenticate user.
| |
ImpersonateUser |
Impersonates current user.
| |
IsAuthenticated |
Returns true if the current user is authenticated.
| |
IsAuthenticationRedirect |
Checks whether request is being redirected to a logon page.
| |
IsPasswordExpirationEnabled |
Indicates if password expiration is enabled
| |
MaximumInvalidPasswordAttemps |
Gets limit of invalid password attempts before user account is locked
| |
RegenerateAuthenticationGuid |
Invalidates JSON Web Token by regenerating UserAuthenticationGUID value.
| |
RemoveSessionID |
Removes cookie with session ID which enforces ASP.NET to generate new session ID if RenewSessionAuthChange property is set to true.
| |
ResetPassword |
Resets password for user based on his request.
| |
SendPasswordRequest |
Sends e-mail to user for approval request of new password.
| |
SendPasswordResetConfirmation |
Sends a confirmation e-mail informing the user about a recent password change.
| |
SendUnlockAccountRequest |
Sends e-mail to user to inform her about her account was locked due to reaching maximum invalid logon attempts.
| |
SetAuthCookieWithUserData |
Creates authentication cookie of user with specified custom data.
| |
SetWindowsUserCultures |
Sets preferred cultures for a windows user
| |
SignOut(String) |
Signs the user out.
| |
SignOut(String) |
Signs the user out.
| |
UnlockUserAccount |
Unlock specified user account
| |
UpdateLastLogonInformation |
Updates last logon information of user = last logon time, IP address and agent.
Doesn't call SetUserInfo!!
| |
ValidateResetPassword |
Validates request of password reset.
|