5 references to IsValid
Microsoft.AspNetCore.Antiforgery.Test (1)
AntiforgeryMiddlewareTest.cs (1)
27
Assert.True(httpContext.Features.Get<IAntiforgeryValidationFeature>()?.
IsValid
);
Microsoft.AspNetCore.Components.Endpoints (1)
RazorComponentEndpointInvoker.cs (1)
190
if (!antiForgeryValidationFeature.
IsValid
)
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
364
var hasInvalidToken = _request.HttpContext.Features.Get<IAntiforgeryValidationFeature>() is {
IsValid
: false };
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
1511
if (httpContext.Features.Get<IAntiforgeryValidationFeature>() is {
IsValid
: false } antiforgeryValidationFeature)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\AntiforgeryMiddlewareAuthorizationFilter.cs (1)
22
if (antiforgeryValidationFeature is {
IsValid
: false })