Свойство | Тип | Описание | |
---|---|---|---|
GetCurrentCookie | System.Web.HttpCookie | ||
NewTicketFrom | System.Web.Security.FormsAuthenticationTicket | ||
RenewCookieWith | void | ||
ValidateCookie | bool | ||
ValidatePrincipal | bool |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
DeserializeUser ( string userData, string userName ) : IUser | ||
GetCurrentTicket ( string encryptedTicketValue ) : System.Web.Security.FormsAuthenticationTicket | ||
SerializeUser ( IUser user ) : string |
Метод | Описание | |
---|---|---|
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 | |
Результат | IUser |
public FormsAuthService ( IUserService userService ) : System | ||
userService | IUserService | |
Результат | System |
protected static GetCurrentTicket ( string encryptedTicketValue ) : System.Web.Security.FormsAuthenticationTicket | ||
encryptedTicketValue | string | |
Результат | System.Web.Security.FormsAuthenticationTicket |
public GetUpdatedPrincipalFor ( IPrincipal principal ) : IPrincipal | ||
principal | IPrincipal | |
Результат | IPrincipal |
public GetUpdatedPrincipalFor ( IUser user, bool stayLoggedIn = false, System.Web.Security.FormsAuthenticationTicket currentTicket = null ) : IPrincipal | ||
user | IUser | |
stayLoggedIn | bool | |
currentTicket | System.Web.Security.FormsAuthenticationTicket | |
Результат | IPrincipal |
protected SerializeUser ( IUser user ) : string | ||
user | IUser | |
Результат | string |