Share via


IAntiForgeryAdditionalDataProvider.ValidateAdditionalData Method

Definition

Validates additional data that was embedded inside an incoming anti-forgery token.

public bool ValidateAdditionalData (System.Web.HttpContextBase context, string additionalData);
abstract member ValidateAdditionalData : System.Web.HttpContextBase * string -> bool
Public Function ValidateAdditionalData (context As HttpContextBase, additionalData As String) As Boolean

Parameters

context
HttpContextBase

Information about the current request.

additionalData
String

The supplemental data that was embedded in the token.

Returns

true if the data is valid, or false if the data is invalid.

Applies to