8 references to AntiforgeryValidationException
Microsoft.AspNetCore.Antiforgery (5)
Internal\DefaultAntiforgery.cs (5)
152
throw new
AntiforgeryValidationException
(
161
throw new
AntiforgeryValidationException
(message);
166
throw new
AntiforgeryValidationException
(message);
173
throw new
AntiforgeryValidationException
(message);
204
throw new
AntiforgeryValidationException
(message);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Filters\AntiforgeryMiddlewareAuthorizationFilterTest.cs (2)
21
httpContext.Features.Set<IAntiforgeryValidationFeature>(new AntiforgeryValidationFeature(false, new
AntiforgeryValidationException
(string.Empty)));
56
httpContext.Features.Set<IAntiforgeryValidationFeature>(new AntiforgeryValidationFeature(false, new
AntiforgeryValidationException
(string.Empty)));
Filters\ValidateAntiforgeryTokenAuthorizationFilterTest.cs (1)
82
.Throws(new
AntiforgeryValidationException
("Failed"))