Class AuthorizeContentAttribute
When added to an MVC controller this action filter checks authorization for a previously routed node available through the request context.
Inheritance
Implements
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class AuthorizeContentAttribute : ActionFilterAttribute, IAuthorizationFilter
Constructors
AuthorizeContentAttribute()
Creates a Authorize
Declaration
public AuthorizeContentAttribute()
Properties
ContentLoader
Gets or sets the content loader.
Declaration
public IContentLoader ContentLoader { get; set; }
Property Value
Type | Description |
---|---|
IContent |
The content loader. |
DisableAccessCheck
Gets or sets a value indicating whether [disable access check] for an action.
Declaration
public bool DisableAccessCheck { get; set; }
Property Value
Type | Description |
---|---|
System. |
LanguageSelectorFactory
Gets or sets the language selector factory.
Declaration
public LanguageSelectorFactory LanguageSelectorFactory { get; set; }
Property Value
Type | Description |
---|---|
Language |
RequiredLevel
The required access level to execute this controller or action.
Declaration
public AccessLevel RequiredLevel { get; set; }
Property Value
Type | Description |
---|---|
Access |
Methods
OnActionExecuting(ActionExecutingContext)
Called by the ASP.NET MVC framework before the action method executes.
Declaration
public override void OnActionExecuting(ActionExecutingContext filterContext)
Parameters
Type | Name | Description |
---|---|---|
System. |
filterContext | The filter context. |
OnAuthorization(AuthorizationContext)
Authorizes the request and sets the result to System.
Declaration
public void OnAuthorization(AuthorizationContext filterContext)
Parameters
Type | Name | Description |
---|---|---|
System. |
filterContext | The filter context to set results to. |