Property | Type | Description | |
---|---|---|---|
GetCurrentCookie | System.Web.HttpCookie | ||
NewTicketFrom | System.Web.Security.FormsAuthenticationTicket | ||
RenewCookieWith | void | ||
ValidateCookie | bool | ||
ValidatePrincipal | bool |
Method | Description | |
---|---|---|
FormsAuthService ( IUserService userService ) : System | ||
GetUpdatedPrincipalFor ( IPrincipal principal ) : IPrincipal |
To be called on post authenticate request with Application.User
|
|
GetUpdatedPrincipalFor ( IUser user, bool stayLoggedIn = false, System.Web.Security.FormsAuthenticationTicket currentTicket = null ) : IPrincipal |
Method | Description | |
---|---|---|
DeserializeUser ( string userData, string userName ) : IUser | ||
GetCurrentTicket ( string encryptedTicketValue ) : System.Web.Security.FormsAuthenticationTicket | ||
SerializeUser ( IUser user ) : string |
Method | Description | |
---|---|---|
GetCurrentCookie ( ) : System.Web.HttpCookie | ||
NewTicketFrom ( string userName, System.DateTime issueDate, System.DateTime expires, bool stayLoggedIn, string userData ) : System.Web.Security.FormsAuthenticationTicket | ||
RenewCookieWith ( System.Web.Security.FormsAuthenticationTicket ticket ) : void | ||
ValidateCookie ( System.Web.HttpCookie authCookie ) : bool | ||
ValidatePrincipal ( IPrincipal principal ) : bool |
protected DeserializeUser ( string userData, string userName ) : IUser | ||
userData | string | |
userName | string | |
return | IUser |
public FormsAuthService ( IUserService userService ) : System | ||
userService | IUserService | |
return | System |
protected static GetCurrentTicket ( string encryptedTicketValue ) : System.Web.Security.FormsAuthenticationTicket | ||
encryptedTicketValue | string | |
return | System.Web.Security.FormsAuthenticationTicket |
public GetUpdatedPrincipalFor ( IPrincipal principal ) : IPrincipal | ||
principal | IPrincipal | |
return | IPrincipal |
public GetUpdatedPrincipalFor ( IUser user, bool stayLoggedIn = false, System.Web.Security.FormsAuthenticationTicket currentTicket = null ) : IPrincipal | ||
user | IUser | |
stayLoggedIn | bool | |
currentTicket | System.Web.Security.FormsAuthenticationTicket | |
return | IPrincipal |
protected SerializeUser ( IUser user ) : string | ||
user | IUser | |
return | string |