Class MemberAuthorizeAttribute
Attribute for attributing controller actions to restrict them to just authenticated members, and optionally of a particular type and/or group
Inheritance
System.Object
Namespace: Umbraco.Web.WebApi
Assembly: Umbraco.Web.dll
Syntax
public sealed class MemberAuthorizeAttribute : AuthorizeAttribute
Properties
View SourceAllowGroup
Comma delimited list of allowed member groups
Declaration
public string AllowGroup { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AllowMembers
Comma delimited list of allowed members
Declaration
public string AllowMembers { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AllowType
Comma delimited list of allowed member types
Declaration
public string AllowType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceIsAuthorized(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 |