ProtectAttribute

Namespace: ASPSecurityKit.NetFramework.WebApi
Assembly: ASPSecurityKit.NetFramework.WebApi.dll

Summary

An ASP.NET Web API action filter attribute that protects the associated actions or endpoints by executing a strong security pipeline provided by ASPSecurityKit.

Properties

ValidateXss

Summary

Gets or sets a value indicating whether cross-site scripting (XSS) validation should be performed on action parameters. The default is true.

Value

A Boolean value indicating whether cross-site scripting (XSS) validation should be performed on action parameters.

Methods

ExecuteActionFilterAsync(actionContext,cancellationToken,continuation)

Summary

Initializes and executes the ISecurityPipeline before the action method executes.

Parameters
Name Type Description
actionContext System.Web.Http.Controllers.HttpActionContext The action context.
cancellationToken System.Threading.CancellationToken The cancellation token assigned for this task.
continuation System.Func{System.Threading.Tasks.Task{System.Net.Http.HttpResponseMessage}} The delegate function to continue after the action method is invoked.