IAntiforgeryAdditionalDataProvider.ValidateAdditionalData(HttpContext, String) IAntiforgeryAdditionalDataProvider.ValidateAdditionalData(HttpContext, String) IAntiforgeryAdditionalDataProvider.ValidateAdditionalData(HttpContext, String) Method

Definition

Validates additional data that was embedded inside an incoming antiforgery token.

public bool ValidateAdditionalData (Microsoft.AspNetCore.Http.HttpContext context, string additionalData);
abstract member ValidateAdditionalData : Microsoft.AspNetCore.Http.HttpContext * string -> bool
Public Function ValidateAdditionalData (context As HttpContext, additionalData As String) As Boolean
Parameters
context
HttpContext HttpContext HttpContext

Information about the current request.

additionalData
String String String

Supplemental data that was embedded within the token.

Returns

True if the data is valid; false if the data is invalid.

Applies to