Click or drag to resize

AppContextValidateCSRFToken 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
public 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.

Implements

IAppContextValidateCSRFToken(String, CSRFValidationOptions)
See Also