Dela via


IAntiforgeryAdditionalDataProvider.ValidateAdditionalData Method

Definition

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

public:
 bool ValidateAdditionalData(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ additionalData);
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

Information about the current request.

additionalData
String

Supplemental data that was embedded within the token.

Returns

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

Applies to