Show / Hide Table of Contents

Class AuthErrorMessages

Class provides methods for authentication error messages creation.

Inheritance
System.Object
AuthErrorMessages
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Authentication.Core
Assembly: Terrasoft.Authentication.dll
Syntax
public class AuthErrorMessages

Methods

GetAuthErrorMessage(UserValidateResult, Boolean, Boolean)

Returns authentication error message for passwordValidateError.

Declaration
public LocalizableString GetAuthErrorMessage(UserValidateResult passwordValidateError, bool displayIncorrectPassword, bool displayAccountLockout)
Parameters
Type Name Description
UserValidateResult passwordValidateError

Authentication error.

System.Boolean displayIncorrectPassword

Show wrong password message flag.

System.Boolean displayAccountLockout

Show account locked message flag.

Returns
Type Description
LocalizableString

Authentication error message

GetLoginAttemptFailedMessage(Int32, Int32)

Returns user login attempts error message.

Declaration
public string GetLoginAttemptFailedMessage(int lockoutDuration, int currentCount)
Parameters
Type Name Description
System.Int32 lockoutDuration

User lockout duration in minutes.

System.Int32 currentCount

Current login attempt number.

Returns
Type Description
System.String

User login attempts error message.

GetLoginUsingProviderFailMessage(AuthData, String)

Returns authentication using providerName failed message.

Declaration
public string GetLoginUsingProviderFailMessage(AuthData authData, string providerName)
Parameters
Type Name Description
AuthData authData

User authentication parameters.

System.String providerName

Authentication provider name.

Returns
Type Description
System.String

Authentication using authentication provider failed message.

Extension Methods

ReflectionUtilities.GetPropertyValue(Object, String)
ReflectionUtilities.GetPropertyDefValue(Object, String, Object)
ReflectionUtilities.TryGetPropertyValue(Object, String, out Object)
ReflectionUtilities.HasProperty(Object, String)
ReflectionUtilities.GetPropertyValue(Object, String, BindingFlags)
ReflectionUtilities.GetPropertyValueByPath(Object, String)
ReflectionUtilities.SetPropertyValue(Object, String, Object)
ReflectionUtilities.TrySetPropertyValue(Object, String, Object)
ValidateUtilities.CheckArgumentNull(Object, String)
ValidateUtilities.CheckDependencyNull(Object, String)
ValidateUtilities.EnsureDependencyNotNull<T>(T, String)
In This Article
Back to top © 2021 Creatio. All rights reserved.