AdvantageApiAuthorizationAttribute Class
Custom authorization attribute for API security.
This attribute dynamically applies an authorization filter based on the specified type.
Namespace:
AdvantageCSP.APIAssembly: AdvantageCSP.API (in AdvantageCSP.API.dll)
Syntax
[AttributeUsageAttribute] public class AdvantageApiAuthorizationAttribute : Attribute, IAuthorizationFilter
Remarks
Examples
C#
[AdvantageApiAuthorization(typeof(MySecureContentController))] [RoutePrefix("api")] public class MySecureContentController : AdvantageApiControllerBase { // Controller actions here }