|
AntiForgeryValidate(HttpRequestMessage, String, String) Method
|
Validates an anti-forgery token pair that was generated by the GetTokens method.
Namespace: GSF.Web.SecurityAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.248-beta
Syntax[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static void Validate(
HttpRequestMessage request,
string cookieToken,
string formToken
)
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
Public Shared Sub Validate (
request As HttpRequestMessage,
cookieToken As String,
formToken As String
)
public:
[EditorBrowsableAttribute(EditorBrowsableState::Advanced)]
static void Validate(
HttpRequestMessage^ request,
String^ cookieToken,
String^ formToken
)
[<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>]
static member Validate :
request : HttpRequestMessage *
cookieToken : string *
formToken : string -> unit
GSF.Web.Security.AntiForgery.Validate = function(request, cookieToken, formToken);
View SourceParameters
- 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