Class DnnAuthorizeAttribute
Provides Dnn specific details authorization filter.
Implements
Inherited Members
Namespace: DotNetNuke.Web.Api
Assembly: DotNetNuke.Web.dll
Syntax
public sealed class DnnAuthorizeAttribute : AuthorizeAttributeBase, IOverrideDefaultAuthLevel
Properties
| Improve this Doc View SourceAuthTypes
Gets or sets the allowed authentication types (separated by comma).
Declaration
public string AuthTypes { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DenyRoles
Gets or sets the denied roles (separated by comma).
Declaration
public string DenyRoles { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StaticRoles
Gets or sets the authorized roles (separated by comma).
Declaration
public string StaticRoles { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceIsAuthorized(AuthFilterContext)
Tests if the request passes the authorization requirements.
Declaration
public override bool IsAuthorized(AuthFilterContext context)
Parameters
Type | Name | Description |
---|---|---|
AuthFilterContext | context | The auth filter context. |
Returns
Type | Description |
---|---|
System.Boolean | True when authorization is succesful. |