Click or drag to resize

IAppContextValidateCSRFToken Method

Validates the specified token against the CSRFToken. Note that if the ThrowStandardError option is specified then this method will throw the standard invalid CSRF token exception and will not return.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
bool ValidateCSRFToken(
	string token,
	CSRFValidationOptions options
)

Parameters

token
Type: SystemString
The token to validate.
options
Type: NetQuarryCSRFValidationOptions
Validation options.

Return Value

Type: Boolean
True if the specified token is valid, else false.
See Also