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 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.