IAntiForgeryAdditionalDataProvider.ValidateAdditionalData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.