C# Class UCDArch.Web.Attributes.UseAntiForgeryTokenOnPostByDefault

Inheritance: System.Web.Mvc.ActionFilterAttribute
Mostrar archivo Open project: ucdavis/UCDArch

Public Methods

Method Description
OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void

Private Methods

Method Description
ShouldValidateAntiForgeryTokenManually ( System.Web.Mvc.ActionExecutingContext filterContext ) : bool

We should validate the anti forgery token manually if the following criteria are met: 1. The http method must be POST 2. There is not an existing [ValidateAntiForgeryToken] attribute on the action 3. There is not an existing [ValidateAntiForgeryTokenHeaderOrForm] attribute on the action 3. There is no [IgnoreAntiForgeryToken] attribute on the action

Method Details

OnActionExecuting() public method

public OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext
return void