C# Class van.Web.Controllers.Infrastructure.FormsAuthenticationProvider

Inheritance: IAuthenticationProvider, IAuthorizationProvider
Exibir arquivo Open project: zachariahyoung/virtualaltnet

Public Methods

Method Description
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

Method Details

IsAuthenticated() public method

public IsAuthenticated ( System.Web.Mvc.ControllerContext context ) : bool
context System.Web.Mvc.ControllerContext
return bool

IsAuthorized() public method

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
return bool

RedirectToDenied() public method

public RedirectToDenied ( System.Web.Mvc.ControllerContext context ) : void
context System.Web.Mvc.ControllerContext
return void

RedirectToLogin() public method

public RedirectToLogin ( System.Web.Mvc.ControllerContext context ) : void
context System.Web.Mvc.ControllerContext
return void

SetAuthCookie() public method

public SetAuthCookie ( string userName, bool createPersistentCookie ) : void
userName string
createPersistentCookie bool
return void