Class ValidateMvcAngularAntiForgeryTokenAttribute
A filter to check for the csrf token based on Angular's standard approach
Inheritance
System.Object
Namespace: Umbraco.Web.Mvc
Assembly: Umbraco.Web.dll
Syntax
public sealed class ValidateMvcAngularAntiForgeryTokenAttribute : ActionFilterAttribute
Remarks
Code derived from http://ericpanorel.net/2013/07/28/spa-authentication-and-csrf-mvc4-antiforgery-implementation/
If the authentication type is cookie based, then this filter will execute, otherwise it will be disabled
Methods
View SourceOnActionExecuting(ActionExecutingContext)
Declaration
public override void OnActionExecuting(ActionExecutingContext filterContext)
Parameters
Type | Name | Description |
---|---|---|
ActionExecutingContext | filterContext |