PageAuthorizeAttribute class

namespace: Serenity.Web   assemblySerenity.Net.Web

Authorizes access to a controller action. Optionally checks the permission provided as the first argument. Use special permission key "?" to check for logged-in users, and "*" to allow anyone including anonymous access.

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class PageAuthorizeAttribute : TypeFilterAttribute

Public Members

name description
PageAuthorizeAttribute() Creates an instance of the PageAuthorizeAttribute.
PageAuthorizeAttribute(…) Creates an instance of the PageAuthorizeAttribute, while reading the permission key from the NavigationPermissionAttribute or ReadPermissionAttribute of the source type. (4 constructors)
Permission { get; } The permission key

Protected Members

name description
PageAuthorizeAttribute(…) Creates a new instance of the class

See Also