5 instantiations of AuthorizationPolicy
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
246 references to AuthorizationPolicy
Aspire.Dashboard (7)
CustomAuthorizationFailureResponse (1)
CustomPolicyProvider (3)
Microsoft.AspNetCore.Authorization (70)
Microsoft.AspNetCore.Authorization.Policy (32)
Microsoft.AspNetCore.Authorization.Test (85)
AuthorizationMiddlewareTests.cs (33)
27var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
46var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
66var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
85var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
106var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
128var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
150var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
172var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().AddAuthenticationSchemes("schema1", "schema2").Build();
194var policy = new AuthorizationPolicyBuilder().RequireAssertion(_ => true).Build();
236var policy = new AuthorizationPolicyBuilder().RequireAssertion(_ => true).Build();
278var policy = new AuthorizationPolicyBuilder().RequireAssertion(_ => true).Build();
335public new Task<AuthorizationPolicy> GetFallbackPolicyAsync()
341public override Task<AuthorizationPolicy> GetPolicyAsync(string policyName)
356var policy = new AuthorizationPolicyBuilder().RequireAssertion(_ => true).Build();
388var policy = new AuthorizationPolicyBuilder().RequireAssertion(_ => true).Build();
423var policy = new AuthorizationPolicyBuilder().RequireAssertion(_ =>
547var policy = new AuthorizationPolicyBuilder().RequireClaim("Permission", "CanViewPage").Build();
566var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
587var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
608var policy = new AuthorizationPolicyBuilder("Fails").RequireAuthenticatedUser().Build();
632var policy = new AuthorizationPolicyBuilder().RequireClaim("Permission", "CanViewComment", "CanViewPage").Build();
652var policy = new AuthorizationPolicyBuilder().RequireAssertion(c =>
681var policy = new AuthorizationPolicyBuilder().RequireAssertion(c =>
705var policy = new AuthorizationPolicyBuilder().RequireRole("Wut").Build();
727var policy = new AuthorizationPolicyBuilder().RequireRole("Wut").AddAuthenticationSchemes("Basic", "Bearer").Build();
748var policy = new AuthorizationPolicyBuilder()
772var policy = new AuthorizationPolicyBuilder().RequireClaim("Permission", "CanViewPage").Build();
795var policy = new AuthorizationPolicyBuilder().RequireRole("Wut").AddAuthenticationSchemes("NotImplemented").Build();
818var policy = new AuthorizationPolicyBuilder().RequireRole("Wut").AddAuthenticationSchemes("Basic", "Bearer").Build();
859var policy = new AuthorizationPolicyBuilder().RequireClaim("Permission", "CanViewPage").Build();
885var policy = new AuthorizationPolicyBuilder().RequireClaim("Permission", "CanViewPage").Build();
917var policy = new AuthorizationPolicyBuilder().RequireClaim("Permission", "CanViewPage").AddAuthenticationSchemes("Bearer").Build();
951var policy = new AuthorizationPolicyBuilder().RequireClaim("Permission", "CanViewPage").Build();
Microsoft.AspNetCore.Components.Authorization (2)
Microsoft.AspNetCore.Components.Authorization.Tests (3)
Microsoft.AspNetCore.Http.Connections.Tests (3)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.Core (13)
Microsoft.AspNetCore.Mvc.Core.Test (13)
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.AspNetCore.SignalR.Tests (3)
SecurityWebSite (1)