• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class DnnAuthorizeAttribute

Provides Dnn specific details authorization filter.

Inheritance
System.Object
AuthorizeAttributeBase
DnnAuthorizeAttribute
Implements
IOverrideDefaultAuthLevel
Inherited Members
AuthorizeAttributeBase.IsAnonymousAttributePresent(HttpActionContext)
AuthorizeAttributeBase.OnAuthorization(HttpActionContext)
AuthorizeAttributeBase.SkipAuthorization(HttpActionContext)
Namespace: DotNetNuke.Web.Api
Assembly: DotNetNuke.Web.dll
Syntax
public sealed class DnnAuthorizeAttribute : AuthorizeAttributeBase, IOverrideDefaultAuthLevel

Properties

| Improve this Doc View Source

AuthTypes

Gets or sets the allowed authentication types (separated by comma).

Declaration
public string AuthTypes { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

DenyRoles

Gets or sets the denied roles (separated by comma).

Declaration
public string DenyRoles { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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 Source

IsAuthorized(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.

Overrides
AuthorizeAttributeBase.IsAuthorized(AuthFilterContext)

Implements

IOverrideDefaultAuthLevel

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS