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

Class SupportedModulesAttribute

Inheritance
System.Object
AuthorizeAttributeBase
SupportedModulesAttribute
Inherited Members
AuthorizeAttributeBase.IsAnonymousAttributePresent(HttpActionContext)
AuthorizeAttributeBase.OnAuthorization(HttpActionContext)
Namespace: DotNetNuke.Web.Api
Assembly: DotNetNuke.Web.dll
Syntax
public class SupportedModulesAttribute : AuthorizeAttributeBase

Constructors

| Improve this Doc View Source

SupportedModulesAttribute(String)

Declaration
public SupportedModulesAttribute(string supportedModules)
Parameters
Type Name Description
System.String supportedModules
| Improve this Doc View Source

SupportedModulesAttribute(String[])

Declaration
public SupportedModulesAttribute(params string[] supportedModules)
Parameters
Type Name Description
System.String[] supportedModules

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)
| Improve this Doc View Source

SkipAuthorization(HttpActionContext)

Skips this authorization step if anonymous attribute is applied, override if auth should never be skipped, or other conditions are required.

Declaration
protected override bool SkipAuthorization(HttpActionContext actionContext)
Parameters
Type Name Description
HttpActionContext actionContext

The HTTP Action Context.

Returns
Type Description
System.Boolean

A value indicating whether to skip the authorization.

Overrides
AuthorizeAttributeBase.SkipAuthorization(HttpActionContext)

Extension Methods

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