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.Mvc
Assembly: Umbraco.Web.dll
Syntax
public sealed class MemberAuthorizeAttribute : Mvc.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 SourceAuthorizeCore(HttpContextBase)
Declaration
protected override bool AuthorizeCore(HttpContextBase httpContext)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | httpContext |
Returns
Type | Description |
---|---|
System.Boolean |
HandleUnauthorizedRequest(AuthorizationContext)
Override method to throw exception instead of returning a 401 result
Declaration
protected override void HandleUnauthorizedRequest(AuthorizationContext filterContext)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationContext | filterContext |