Click or drag to resize

ValidateRequestVerificationTokenAttribute Class

Requests that the controller or method validate the anti-forgery request verification token values found in the HTTP headers.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    FilterAttribute
      ActionFilterAttribute
        GSF.Web.SecurityValidateRequestVerificationTokenAttribute

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public class ValidateRequestVerificationTokenAttribute : ActionFilterAttribute
View Source

The ValidateRequestVerificationTokenAttribute type exposes the following members.

Constructors
 NameDescription
Public methodValidateRequestVerificationTokenAttribute Creates a new ValidateRequestVerificationTokenAttribute.
Top
Properties
 NameDescription
Public propertyAllowMultipleGets a value that indicates whether multiple filters are allowed.
(Inherited from FilterAttribute)
Public propertyFormValidation Gets or sets flag that determines if validation should occur via posted form data or header data. Set to true to use form data with RequestVerificationToken function; otherwise, set to false to use with RequestVerificationHeaderToken function (e.g., when used via JSON). Defaults to false.
Public propertyHttpMethods Gets or sets HTTP methods, as a comma separated value string, for which validation will apply. Defaults to *, meaning validation applies to all possible HTTP methods.
Public propertyTypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)
Top
Methods
 NameDescription
Public methodEqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
Public methodMatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOnActionExecutedOccurs after the action method is invoked.
(Inherited from ActionFilterAttribute)
Public methodOnActionExecutedAsync
(Inherited from ActionFilterAttribute)
Public methodOnActionExecutingOccurs before the action method is invoked.
(Inherited from ActionFilterAttribute)
Public methodOnActionExecutingAsync Occurs before the action method is invoked.
(Overrides ActionFilterAttribute.OnActionExecutingAsync(HttpActionContext, CancellationToken))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
For self-hosted web sites, use this attribute to validate anti-forgery tokens instead of the ValidateAntiForgeryTokenAttribute which requires an active HttpContext.
See Also