Show / Hide Table of Contents

Class ApiTokenAuthorizeAttribute

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

Constructors

ApiTokenAuthorizeAttribute(string, string, ApiTokenScope)

Declaration
public ApiTokenAuthorizeAttribute(string key, string resourceFile, ApiTokenScope scope)
Parameters
Type Name Description
string key
string resourceFile
ApiTokenScope scope

Properties

Key

Declaration
public string Key { get; set; }
Property Value
Type Description
string

ResourceFile

Declaration
public string ResourceFile { get; set; }
Property Value
Type Description
string

Scope

Declaration
public ApiTokenScope Scope { get; set; }
Property Value
Type Description
ApiTokenScope

Methods

IsAuthorized(AuthFilterContext)

Declaration
public override bool IsAuthorized(AuthFilterContext context)
Parameters
Type Name Description
AuthFilterContext context
Returns
Type Description
bool
Overrides
AuthorizeAttributeBase.IsAuthorized(AuthFilterContext)

Implements

IOverrideDefaultAuthLevel

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS