2 implementations of IAntiforgeryPolicy
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Filters\ValidateAntiforgeryTokenAuthorizationFilter.cs (1)
10
internal partial class ValidateAntiforgeryTokenAuthorizationFilter : IAsyncAuthorizationFilter,
IAntiforgeryPolicy
IgnoreAntiforgeryTokenAttribute.cs (1)
13
public class IgnoreAntiforgeryTokenAttribute : Attribute,
IAntiforgeryPolicy
, IOrderedFilter
5 references to IAntiforgeryPolicy
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\AutoValidateAntiforgeryPageApplicationModelProvider.cs (1)
29
if (!pageApplicationModel.Filters.OfType<
IAntiforgeryPolicy
>().Any())
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (2)
67
var
expected = Mock.Of<
IAntiforgeryPolicy
>();
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Filters\ValidateAntiforgeryTokenAuthorizationFilter.cs (2)
27
if (!context.IsEffectivePolicy<
IAntiforgeryPolicy
>(this))
29
Log.NotMostEffectiveFilter(_logger, typeof(
IAntiforgeryPolicy
));