2 interfaces inheriting from IAsyncAuthorizationFilter
Microsoft.AspNetCore.Mvc.Core.Test (1)
MvcCoreLoggerExtensionsTest.cs (1)
483public interface IOrderedAuthorizeFilter : IAuthorizationFilter, IAsyncAuthorizationFilter, IOrderedFilter { }
Microsoft.AspNetCore.Mvc.Cors (1)
ICorsAuthorizationFilter.cs (1)
11internal interface ICorsAuthorizationFilter : IAsyncAuthorizationFilter, IOrderedFilter
3 implementations of IAsyncAuthorizationFilter
Microsoft.AspNetCore.Mvc.Core (1)
Authorization\AuthorizeFilter.cs (1)
25public class AuthorizeFilter : IAsyncAuthorizationFilter, IFilterFactory
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\ValidateAntiforgeryTokenAuthorizationFilter.cs (1)
10internal partial class ValidateAntiforgeryTokenAuthorizationFilter : IAsyncAuthorizationFilter, IAntiforgeryPolicy
RazorPagesWebSite (1)
Pages\ShortCircuitPageAtAuthFilter.cshtml.cs (1)
25private class AsyncTestAuthorizationFilterAttribute : Attribute, IAsyncAuthorizationFilter
33 references to IAsyncAuthorizationFilter
Microsoft.AspNetCore.Mvc.Abstractions (1)
Filters\AuthorizationFilterContext.cs (1)
8/// <see cref="IAsyncAuthorizationFilter"/> implementations.
Microsoft.AspNetCore.Mvc.Core (13)
Authorization\AuthorizeFilter.cs (1)
17/// An implementation of <see cref="IAsyncAuthorizationFilter"/> which applies a specific
Infrastructure\ResourceInvoker.cs (7)
306var current = _cursor.GetNextFilter<IAuthorizationFilter, IAsyncAuthorizationFilter>(); 338var filter = (IAsyncAuthorizationFilter)state; 344nameof(IAsyncAuthorizationFilter.OnAuthorizationAsync), 362var filter = (IAsyncAuthorizationFilter)state; 368nameof(IAsyncAuthorizationFilter.OnAuthorizationAsync),
MvcCoreDiagnosticListenerExtensions.cs (4)
79IAsyncAuthorizationFilter filter) 92private static void BeforeOnAuthorizationAsyncImpl(DiagnosticListener diagnosticListener, AuthorizationFilterContext authorizationContext, IAsyncAuthorizationFilter filter) 109IAsyncAuthorizationFilter filter) 122private static void AfterOnAuthorizationAsyncImpl(DiagnosticListener diagnosticListener, AuthorizationFilterContext authorizationContext, IAsyncAuthorizationFilter filter)
MvcCoreLoggerExtensions.cs (1)
32var authorizationFilters = filters.Where(f => f is IAuthorizationFilter || f is IAsyncAuthorizationFilter);
Microsoft.AspNetCore.Mvc.Core.Test (12)
MvcCoreLoggerExtensionsTest.cs (12)
129var asyncAuthFilter = Mock.Of<IAsyncAuthorizationFilter>(); 171var asyncAuthFilter = Mock.Of<IAsyncAuthorizationFilter>(); 217var asyncAuthFilter = Mock.Of<IAsyncAuthorizationFilter>(); 263var asyncAuthFilter = Mock.Of<IAsyncAuthorizationFilter>(); 309var asyncAuthFilter = Mock.Of<IAsyncAuthorizationFilter>(); 355var asyncAuthFilter = Mock.Of<IAsyncAuthorizationFilter>();
Microsoft.AspNetCore.Mvc.Core.TestCommon (4)
CommonResourceInvokerTest.cs (4)
594var filter = new Mock<IAsyncAuthorizationFilter>(MockBehavior.Strict); 655var filter1 = new Mock<IAsyncAuthorizationFilter>(MockBehavior.Strict); 664var filter2 = new Mock<IAsyncAuthorizationFilter>(MockBehavior.Strict); 1743var authorizationFilter = new Mock<IAsyncAuthorizationFilter>(MockBehavior.Strict);
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
RazorPagesTest.cs (1)
1419[InlineData(nameof(IAsyncAuthorizationFilter.OnAuthorizationAsync))]
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionInvokerTest.cs (1)
557var filter = new Mock<IAsyncAuthorizationFilter>(MockBehavior.Strict);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\AntiforgeryMiddlewareAuthorizationFilter.cs (1)
9internal sealed partial class AntiforgeryMiddlewareAuthorizationFilter(ILogger<AntiforgeryMiddlewareAuthorizationFilter> logger) : IAsyncAuthorizationFilter