C# Class Rebel.Cms.Web.Mvc.ActionFilters.RebelAuthorizeAttribute

Ensures authorization occurs for the action or controller, if not this redirects to the correct login URL for the back-office
If the user is authorized, this renews their authentication ticket
Inheritance: System.Web.Mvc.AuthorizeAttribute, IRequiresRoutableRequestContext
Mostrar archivo Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
IsAuthorized ( System.Web.HttpContextBase httpContext, HiveId entityId = default(HiveId) ) : bool

Determines whether the specified HTTP context is authorized.

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

Called when a process requests authorization.

Protected Methods

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

Authorizes the user identity.

AuthorizePermissions ( System.Web.HttpContextBase httpContext, HiveId entityId = default(HiveId) ) : bool

Authorizes the permissions.

Private Methods

Method Description
CacheValidateHandler ( HttpContext context, object data, HttpValidationStatus &validationStatus ) : void

Caches the validate handler.

CheckPermissions ( HiveId entityId, HiveId userId ) : bool

Method Details

AuthorizeIdentity() protected method

Authorizes the user identity.
protected AuthorizeIdentity ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase The HTTP context.
return bool

AuthorizePermissions() protected method

Authorizes the permissions.
protected AuthorizePermissions ( System.Web.HttpContextBase httpContext, HiveId entityId = default(HiveId) ) : bool
httpContext System.Web.HttpContextBase The HTTP context.
entityId HiveId The entity id.
return bool

IsAuthorized() public method

Determines whether the specified HTTP context is authorized.
public IsAuthorized ( System.Web.HttpContextBase httpContext, HiveId entityId = default(HiveId) ) : bool
httpContext System.Web.HttpContextBase The HTTP context.
entityId HiveId The entity id.
return bool

OnAuthorization() public method

Called when a process requests authorization.
The parameter is null.
public OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext The filter context, which encapsulates information for using .
return void