AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

AdvantageApiAuthorizeBase Class

Abstract base class for API authorization, providing access to current context, domain, language, and other application engines.

Namespace:  AdvantageCSP.API
Assembly:  AdvantageCSP.API (in AdvantageCSP.API.dll)

Syntax


public abstract class AdvantageApiAuthorizeBase : AuthorizeAttribute, 
	IAuthorizationFilter

Remarks


The controller's actions require the user to be authorized through the specified before they can access the content.

Examples


"MySecureContentController" would be the implementation of
C#
[AdvantageApiAuthorization(typeof(MySecureContentController))]
[RoutePrefix("api")]
public class MySecureContentController : AdvantageApiControllerBase
{
    // Controller actions here
}

Inheritance Hierarchy


Object
  Attribute
    FilterAttribute
      AuthorizationFilterAttribute
        AuthorizeAttribute
          AdvantageCSP.API..::..AdvantageApiAuthorizeBase