2 interfaces inheriting from IAsyncAuthorizationFilter
Microsoft.AspNetCore.Mvc.Core.Test (1)
MvcCoreLoggerExtensionsTest.cs (1)
483
public interface IOrderedAuthorizeFilter : IAuthorizationFilter,
IAsyncAuthorizationFilter
, IOrderedFilter { }
Microsoft.AspNetCore.Mvc.Cors (1)
ICorsAuthorizationFilter.cs (1)
11
internal interface ICorsAuthorizationFilter :
IAsyncAuthorizationFilter
, IOrderedFilter
3 implementations of IAsyncAuthorizationFilter
Microsoft.AspNetCore.Mvc.Core (1)
Authorization\AuthorizeFilter.cs (1)
25
public class AuthorizeFilter :
IAsyncAuthorizationFilter
, IFilterFactory
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\ValidateAntiforgeryTokenAuthorizationFilter.cs (1)
10
internal partial class ValidateAntiforgeryTokenAuthorizationFilter :
IAsyncAuthorizationFilter
, IAntiforgeryPolicy
RazorPagesWebSite (1)
Pages\ShortCircuitPageAtAuthFilter.cshtml.cs (1)
25
private 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)
306
var current = _cursor.GetNextFilter<IAuthorizationFilter,
IAsyncAuthorizationFilter
>();
338
var
filter = (
IAsyncAuthorizationFilter
)state;
344
nameof(
IAsyncAuthorizationFilter
.OnAuthorizationAsync),
362
var
filter = (
IAsyncAuthorizationFilter
)state;
368
nameof(
IAsyncAuthorizationFilter
.OnAuthorizationAsync),
MvcCoreDiagnosticListenerExtensions.cs (4)
79
IAsyncAuthorizationFilter
filter)
92
private static void BeforeOnAuthorizationAsyncImpl(DiagnosticListener diagnosticListener, AuthorizationFilterContext authorizationContext,
IAsyncAuthorizationFilter
filter)
109
IAsyncAuthorizationFilter
filter)
122
private static void AfterOnAuthorizationAsyncImpl(DiagnosticListener diagnosticListener, AuthorizationFilterContext authorizationContext,
IAsyncAuthorizationFilter
filter)
MvcCoreLoggerExtensions.cs (1)
32
var authorizationFilters = filters.Where(f => f is IAuthorizationFilter || f is
IAsyncAuthorizationFilter
);
Microsoft.AspNetCore.Mvc.Core.Test (12)
MvcCoreLoggerExtensionsTest.cs (12)
129
var
asyncAuthFilter = Mock.Of<
IAsyncAuthorizationFilter
>();
171
var
asyncAuthFilter = Mock.Of<
IAsyncAuthorizationFilter
>();
217
var
asyncAuthFilter = Mock.Of<
IAsyncAuthorizationFilter
>();
263
var
asyncAuthFilter = Mock.Of<
IAsyncAuthorizationFilter
>();
309
var
asyncAuthFilter = Mock.Of<
IAsyncAuthorizationFilter
>();
355
var
asyncAuthFilter = Mock.Of<
IAsyncAuthorizationFilter
>();
Microsoft.AspNetCore.Mvc.Core.TestCommon (4)
CommonResourceInvokerTest.cs (4)
594
var filter = new Mock<
IAsyncAuthorizationFilter
>(MockBehavior.Strict);
655
var filter1 = new Mock<
IAsyncAuthorizationFilter
>(MockBehavior.Strict);
664
var filter2 = new Mock<
IAsyncAuthorizationFilter
>(MockBehavior.Strict);
1743
var 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)
557
var filter = new Mock<
IAsyncAuthorizationFilter
>(MockBehavior.Strict);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\AntiforgeryMiddlewareAuthorizationFilter.cs (1)
9
internal sealed partial class AntiforgeryMiddlewareAuthorizationFilter(ILogger<AntiforgeryMiddlewareAuthorizationFilter> logger) :
IAsyncAuthorizationFilter