C# Class vlko.core.Authentication.AuthorizeRolesAttribute

Inheritance: System.Web.Mvc.AuthorizeAttribute
Datei anzeigen Open project: vlko/vlko

Public Methods

Method Description
AuthorizeRolesAttribute ( ) : System.Web

Initializes a new instance of the AuthorizeRolesAttribute class.

Protected Methods

Method Description
AuthorizeCore ( System.Web.HttpContextBase httpContext ) : bool

Determines whether access to the core framework is authorized.

HandleUnauthorizedRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void

Processes HTTP requests that fail authorization.

Method Details

AuthorizeCore() protected method

Determines whether access to the core framework is authorized.
The parameter is null.
protected AuthorizeCore ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase The HTTP context, which encapsulates all HTTP-specific information about an individual HTTP request.
return bool

AuthorizeRolesAttribute() public method

Initializes a new instance of the AuthorizeRolesAttribute class.
public AuthorizeRolesAttribute ( ) : System.Web
return System.Web

HandleUnauthorizedRequest() protected method

Processes HTTP requests that fail authorization.
protected HandleUnauthorizedRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext Encapsulates the information for using . The object contains the controller, HTTP context, request context, action result, and route data.
return void