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

Class DnnModuleAuthorizeAttribute

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

Constructors

| Improve this Doc View Source

DnnModuleAuthorizeAttribute()

Initializes a new instance of the DnnModuleAuthorizeAttribute class.

Declaration
public DnnModuleAuthorizeAttribute()

Properties

| Improve this Doc View Source

AccessLevel

Declaration
public SecurityAccessLevel AccessLevel { get; set; }
Property Value
Type Description
SecurityAccessLevel
| Improve this Doc View Source

PermissionKey

Declaration
public string PermissionKey { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

FindModuleInfo(HttpRequestMessage)

Declaration
protected virtual ModuleInfo FindModuleInfo(HttpRequestMessage request)
Parameters
Type Name Description
HttpRequestMessage request
Returns
Type Description
ModuleInfo
| 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