Метод | Описание | |
---|---|---|
IsAuthenticated ( System.Web.Mvc.ControllerContext context ) : bool | ||
IsAuthorized ( System.Web.Mvc.ControllerContext context, string roleToCheck, IUserRepository userRepository, IAccountRepository accountRepository ) : bool | ||
RedirectToDenied ( System.Web.Mvc.ControllerContext context ) : void | ||
RedirectToLogin ( System.Web.Mvc.ControllerContext context ) : void | ||
SetAuthCookie ( string userName, bool createPersistentCookie ) : void |
public IsAuthenticated ( System.Web.Mvc.ControllerContext context ) : bool | ||
context | System.Web.Mvc.ControllerContext | |
Результат | bool |
public IsAuthorized ( System.Web.Mvc.ControllerContext context, string roleToCheck, IUserRepository userRepository, IAccountRepository accountRepository ) : bool | ||
context | System.Web.Mvc.ControllerContext | |
roleToCheck | string | |
userRepository | IUserRepository | |
accountRepository | IAccountRepository | |
Результат | bool |
public RedirectToDenied ( System.Web.Mvc.ControllerContext context ) : void | ||
context | System.Web.Mvc.ControllerContext | |
Результат | void |
public RedirectToLogin ( System.Web.Mvc.ControllerContext context ) : void | ||
context | System.Web.Mvc.ControllerContext | |
Результат | void |
public SetAuthCookie ( string userName, bool createPersistentCookie ) : void | ||
userName | string | |
createPersistentCookie | bool | |
Результат | void |