Click or drag to resize

AntiForgeryValidate(HttpRequestMessage, String, String) Method

Validates an anti-forgery token pair that was generated by the GetTokens method.

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static void Validate(
	HttpRequestMessage request,
	string cookieToken,
	string formToken
)
View Source

Parameters

request  HttpRequestMessage
Request message.
cookieToken  String
The token that was supplied in the request cookie.
formToken  String
The token that was supplied in the request form body.
Remarks
Throws an HttpAntiForgeryException if validation fails.
See Also