View Source
Class UmbracoAuthorizeAttribute
Ensures authorization is successful for a back office user.
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public sealed class UmbracoAuthorizeAttribute : AuthorizeAttribute
Constructors
View Source
UmbracoAuthorizeAttribute()
Declaration
public UmbracoAuthorizeAttribute()
View Source
UmbracoAuthorizeAttribute(Boolean)
Declaration
public UmbracoAuthorizeAttribute(bool requireApproval)
Parameters
Type |
Name |
Description |
System.Boolean |
requireApproval |
|
View Source
UmbracoAuthorizeAttribute(UmbracoContext, IRuntimeState)
THIS SHOULD BE ONLY USED FOR UNIT TESTS
Declaration
public UmbracoAuthorizeAttribute(UmbracoContext umbracoContext, IRuntimeState runtimeState)
Parameters
Methods
View Source
IsAuthorized(Http.Controllers.HttpActionContext)
Declaration
protected override bool IsAuthorized(Http.Controllers.HttpActionContext actionContext)
Parameters
Type |
Name |
Description |
System.Web.Http.Controllers.HttpActionContext |
actionContext |
|
Returns
Type |
Description |
System.Boolean |
|