5 implementations of OnAuthorizationAsync
Microsoft.AspNetCore.Mvc.Core (1)
Authorization\AuthorizeFilter.cs (1)
159
public virtual async Task
OnAuthorizationAsync
(AuthorizationFilterContext context)
Microsoft.AspNetCore.Mvc.Cors (2)
CorsAuthorizationFilter.cs (1)
63
public async Task
OnAuthorizationAsync
(AuthorizationFilterContext context)
DisableCorsAuthorizationFilter.cs (1)
22
public Task
OnAuthorizationAsync
(AuthorizationFilterContext context)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\ValidateAntiforgeryTokenAuthorizationFilter.cs (1)
23
public async Task
OnAuthorizationAsync
(AuthorizationFilterContext context)
RazorPagesWebSite (1)
Pages\ShortCircuitPageAtAuthFilter.cshtml.cs (1)
27
public Task
OnAuthorizationAsync
(AuthorizationFilterContext context)
9 references to OnAuthorizationAsync
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ResourceInvoker.cs (1)
347
var task = filter.
OnAuthorizationAsync
(authorizationContext);
Microsoft.AspNetCore.Mvc.Core.TestCommon (6)
CommonResourceInvokerTest.cs (6)
596
.Setup(f => f.
OnAuthorizationAsync
(It.IsAny<AuthorizationFilterContext>()))
607
f => f.
OnAuthorizationAsync
(It.IsAny<AuthorizationFilterContext>()),
657
.Setup(f => f.
OnAuthorizationAsync
(It.IsAny<AuthorizationFilterContext>()))
666
.Setup(f => f.
OnAuthorizationAsync
(It.IsAny<AuthorizationFilterContext>()))
683
f => f.
OnAuthorizationAsync
(It.IsAny<AuthorizationFilterContext>()),
1745
.Setup(f => f.
OnAuthorizationAsync
(It.IsAny<AuthorizationFilterContext>()))
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\PageActionInvokerTest.cs (2)
559
.Setup(f => f.
OnAuthorizationAsync
(It.IsAny<AuthorizationFilterContext>()))
575
f => f.
OnAuthorizationAsync
(It.IsAny<AuthorizationFilterContext>()),