Class AuthUtilities
Inheritance
System.Object
AuthUtilities
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.Common
Assembly: Terrasoft.Common.dll
Syntax
public static class AuthUtilities
Methods
GetUserStateHash(IDataReader, Boolean)
Declaration
public static string GetUserStateHash(IDataReader dataReader, bool checkPasswordAge = false)
Parameters
Type | Name | Description |
---|---|---|
System.Data.IDataReader | dataReader | |
System.Boolean | checkPasswordAge |
Returns
Type | Description |
---|---|
System.String |
GetUserStateHash(Guid, String, String, Boolean, Boolean)
Declaration
public static string GetUserStateHash(Guid id, string name, string password, bool active, bool forceChangePassword)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
System.String | name | |
System.String | password | |
System.Boolean | active | |
System.Boolean | forceChangePassword |
Returns
Type | Description |
---|---|
System.String |
SafelyDecryptTicket(String)
Declaration
public static FormsAuthenticationTicket SafelyDecryptTicket(string encryptedTicket)
Parameters
Type | Name | Description |
---|---|---|
System.String | encryptedTicket |
Returns
Type | Description |
---|---|
System.Web.Security.FormsAuthenticationTicket |
SafelyDecryptTicket(HttpCookie)
Declaration
public static FormsAuthenticationTicket SafelyDecryptTicket(HttpCookie authCookie)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpCookie | authCookie |
Returns
Type | Description |
---|---|
System.Web.Security.FormsAuthenticationTicket |