38 instantiations of ValidateAntiForgeryTokenAttribute
BasicWebSite (7)
Controllers\AntiforgeryController.cs (3)
37[ValidateAntiForgeryToken] 46[ValidateAntiForgeryToken] 65[ValidateAntiForgeryToken]
Controllers\ReadFromThrowingRequestBodyController .cs (1)
10[ValidateAntiForgeryToken]
Controllers\RequestFormLimitsController.cs (2)
13[ValidateAntiForgeryToken] 49[ValidateAntiForgeryToken]
Controllers\RequestSizeLimitController.cs (1)
13[ValidateAntiForgeryToken]
Identity.ExternalClaims (1)
Controllers\AccountController.cs (1)
28[ValidateAntiForgeryToken]
IdentitySample.Mvc (22)
Controllers\AccountController.cs (11)
52[ValidateAntiForgeryToken] 100[ValidateAntiForgeryToken] 130[ValidateAntiForgeryToken] 142[ValidateAntiForgeryToken] 200[ValidateAntiForgeryToken] 265[ValidateAntiForgeryToken] 312[ValidateAntiForgeryToken] 363[ValidateAntiForgeryToken] 421[ValidateAntiForgeryToken] 468[ValidateAntiForgeryToken] 515[ValidateAntiForgeryToken]
Controllers\ManageController.cs (11)
66[ValidateAntiForgeryToken] 93[ValidateAntiForgeryToken] 110[ValidateAntiForgeryToken] 125[ValidateAntiForgeryToken] 141[ValidateAntiForgeryToken] 157[ValidateAntiForgeryToken] 183[ValidateAntiForgeryToken] 208[ValidateAntiForgeryToken] 235[ValidateAntiForgeryToken] 269[ValidateAntiForgeryToken] 320[ValidateAntiForgeryToken]
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
AntiforgeryMiddlewareTest.cs (1)
230[ValidateAntiForgeryToken]
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Filters\AntiforgeryApplicationModelProviderTest.cs (3)
182[ValidateAntiForgeryToken] 200[ValidateAntiForgeryToken] 211[ValidateAntiForgeryToken]
MinimalFormSample (1)
Program.cs (1)
52app.MapPost("/todo", [ValidateAntiForgeryToken] ([FromForm] Todo todo) => Results.Ok(todo));
MvcFormSample (1)
Controllers\HomeController.cs (1)
32[ValidateAntiForgeryToken]
SecurityWebSite (2)
Controllers\HomeController.cs (1)
25[ValidateAntiForgeryToken]
Controllers\IgnoreAntiforgeryController.cs (1)
12[ValidateAntiForgeryToken]
7 references to ValidateAntiForgeryTokenAttribute
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Filters\AntiforgeryApplicationModelProvider.cs (3)
55var antiforgeryAttribute = filters.OfType<ValidateAntiForgeryTokenAttribute>().FirstOrDefault(); 58throw new InvalidOperationException($"Cannot apply [{nameof(ValidateAntiForgeryTokenAttribute)}] and [{nameof(RequireAntiforgeryTokenAttribute)}] at the same time.");
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
Filters\AntiforgeryApplicationModelProviderTest.cs (4)
36Assert.IsType<ValidateAntiForgeryTokenAttribute>(Assert.Single(model.Filters)); 47[InlineData(typeof(MvcAttributeController), typeof(ValidateAntiForgeryTokenAttribute))] 74[InlineData(typeof(DerivedMvcAttributeController), typeof(ValidateAntiForgeryTokenAttribute))] 138$"Cannot apply [{nameof(ValidateAntiForgeryTokenAttribute)}] and [{nameof(RequireAntiforgeryTokenAttribute)}] at the same time.",