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
)
Function ValidateCSRFToken (
token As String,
options As CSRFValidationOptions
) As Boolean
Parameters
- token
- Type: SystemString
The token to validate. - options
- Type: NetQuarryCSRFValidationOptions
Validation options.
Return Value
Type:
BooleanTrue if the specified token is valid, else false.
See Also