2 implementations of IAntiforgeryValidationFeature
Microsoft.AspNetCore (1)
src\aspnetcore\src\Shared\AntiforgeryValidationFeature.cs (1)
11internal sealed class AntiforgeryValidationFeature(bool isValid, Exception? error) : IAntiforgeryValidationFeature
Microsoft.AspNetCore.Antiforgery (1)
src\aspnetcore\src\Shared\AntiforgeryValidationFeature.cs (1)
11internal sealed class AntiforgeryValidationFeature(bool isValid, Exception? error) : IAntiforgeryValidationFeature
12 references to IAntiforgeryValidationFeature
Microsoft.AspNetCore (3)
Internal\CsrfProtectionMiddleware.cs (1)
51context.Features.Set<IAntiforgeryValidationFeature>(new AntiforgeryValidationFeature(false, ValidationFailedException));
Internal\CsrfValidationException.cs (1)
7/// The <see cref="Exception"/> recorded on <see cref="IAntiforgeryValidationFeature"/> when the
src\aspnetcore\src\Shared\AntiforgeryValidationFeature.cs (1)
13public static readonly IAntiforgeryValidationFeature Valid = new AntiforgeryValidationFeature(true, null);
Microsoft.AspNetCore.Antiforgery (3)
AntiforgeryMiddleware.cs (2)
42context.Features.Set<IAntiforgeryValidationFeature?>(null); 50context.Features.Set<IAntiforgeryValidationFeature>(new AntiforgeryValidationFeature(false, e));
src\aspnetcore\src\Shared\AntiforgeryValidationFeature.cs (1)
13public static readonly IAntiforgeryValidationFeature Valid = new AntiforgeryValidationFeature(true, null);
Microsoft.AspNetCore.Components.Endpoints (2)
RazorComponentEndpointInvoker.cs (2)
235var antiforgeryValidationFeature = context.Features.Get<IAntiforgeryValidationFeature>();
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
368var hasInvalidToken = _request.HttpContext.Features.Get<IAntiforgeryValidationFeature>() is { IsValid: false };
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
1545if (httpContext.Features.Get<IAntiforgeryValidationFeature>() is { IsValid: false } antiforgeryValidationFeature)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Filters\AntiforgeryMiddlewareAuthorizationFilter.cs (2)
23var antiforgeryValidationFeature = context.HttpContext.Features.Get<IAntiforgeryValidationFeature>();