Class AuthenticationResponse
Encapsulates authentication data.
Inheritance
Implements
Namespace: Sartorius.SAF.Security
Assembly: Sartorius.SAF.dll
Syntax
[DataContract(IsReference = true)]
[Serializable]
[KnownType(typeof(RegionInfo))]
[KnownType(typeof(CultureInfo))]
[Obsolete("Use the new IAuthenticationProvider API")]
public class AuthenticationResponse : IExtendable
Constructors
View SourceAuthenticationResponse()
Initializes a new instance of the Authentication
Declaration
public AuthenticationResponse()
Properties
View SourceAuthenticationError
The error that occured during authentication.
Declaration
public AuthenticationError AuthenticationError { get; }
Property Value
Type | Description |
---|---|
Authentication |
Remarks
The error is determined 'live' (when getting the value).
ChangingPwdRulesError
Indicates a error after logging or changing of password.
Declaration
[DataMember]
public string ChangingPwdRulesError { get; set; }
Property Value
Type | Description |
---|---|
System. |
ErrorText
Gets or sets the error text.
Declaration
[DataMember]
public string ErrorText { get; set; }
Property Value
Type | Description |
---|---|
System. |
The error text. |
IsCheckSumWrong
Gets or sets a value that indicates whether the checksum of the users data is wrong.
Declaration
[DataMember]
public bool IsCheckSumWrong { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsLoginSuccessful
Indicates whether the login was successful.
Declaration
public bool IsLoginSuccessful { get; }
Property Value
Type | Description |
---|---|
System. |
IsPasswordExpired
Gets or sets a value that indicates whether the users password has expired.
Declaration
[DataMember]
public bool IsPasswordExpired { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsPwdChangedSuccessful
Indicates whether changing of the users password was successful.
Declaration
public bool IsPwdChangedSuccessful { get; }
Property Value
Type | Description |
---|---|
System. |
IsUserAccountExpired
Gets or sets a value that indicates whether the user account is expired.
Declaration
[DataMember]
public bool IsUserAccountExpired { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsUserAvailable
Gets or sets a value that indicates whether the user name exist in the SAF Db.
Declaration
[DataMember]
public bool IsUserAvailable { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsUserLocked
Gets or sets a value that indicates whether the user account is locked.
Declaration
[DataMember]
public bool IsUserLocked { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsUserPasswordCorrect
Gets or sets a value that indicating whether the users password is correct.
Declaration
[DataMember]
public bool IsUserPasswordCorrect { get; set; }
Property Value
Type | Description |
---|---|
System. |
PasswordExpireDate
Gets or sets the expire date of users password.
Declaration
[DataMember]
public DateTime PasswordExpireDate { get; set; }
Property Value
Type | Description |
---|---|
System. |
PrKey
Gets or sets the primary key of the authenticated user.
Declaration
[DataMember]
public Guid PrKey { get; set; }
Property Value
Type | Description |
---|---|
System. |
Properties
Gets a dictionary of properties.
Declaration
[DataMember]
public Dictionary<string, object> Properties { get; set; }
Property Value
Type | Description |
---|---|
System. |
UserCulture
Gets or sets the users preferred culture.
Declaration
[DataMember]
public string UserCulture { get; set; }
Property Value
Type | Description |
---|---|
System. |
UserId
Gets or sets the id of the authenticated user.
Declaration
[DataMember]
public string UserId { get; set; }
Property Value
Type | Description |
---|---|
System. |
UserInfo
Gets or sets the info of the authenticated user.
Declaration
[DataMember]
public string UserInfo { get; set; }
Property Value
Type | Description |
---|---|
System. |
UserName
Gets or sets the name of the authenticated user.
Declaration
[DataMember]
public string UserName { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
View SourceReset()
Resets this instance's properties to its default values.
Declaration
public void Reset()