ProtectAttribute

Namespace: ASPSecurityKit.NetFramework.Mvc
Assembly: ASPSecurityKit.NetFramework.Mvc.dll

Summary

An ASP.NET MVC action filter attribute that protects the associated action 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 false (as ASP.NET MVC has inbuilt XSS validator).

Value

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

Methods

OnActionExecuting(filterContext)

Summary

Initializes and executes the ISecurityPipeline before the action method executes.

Parameters
Name Type Description
filterContext System.Web.Mvc.ActionExecutingContext The filter context.