C# Класс UCDArch.Web.Attributes.UseAntiForgeryTokenOnPostByDefault

Наследование: System.Web.Mvc.ActionFilterAttribute
Показать файл Открыть проект

Открытые методы

Метод Описание
OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void

Приватные методы

Метод Описание
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

Описание методов

OnActionExecuting() публичный Метод

public OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext
Результат void