1 type derived from DefaultAuthorizationPolicyProvider
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareTests.cs (1)
324private class TestDefaultPolicyProvider : DefaultAuthorizationPolicyProvider
24 instantiations of DefaultAuthorizationPolicyProvider
CustomPolicyProvider (1)
Authorization\MinimumAgePolicyProvider.cs (1)
28FallbackPolicyProvider = new DefaultAuthorizationPolicyProvider(options);
Microsoft.AspNetCore.Authorization.Test (8)
AuthorizationPolicyFacts.cs (7)
31var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 59var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 81var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 103var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 125var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 145var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 164var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options));
DefaultAuthorizationServiceTests.cs (1)
27var provider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions()));
Microsoft.AspNetCore.Mvc.Core.Test (8)
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (7)
23new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions())), 41new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions())), 59new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions())), 81new DefaultAuthorizationPolicyProvider(options), 107new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions())), 132var policyProvider = new DefaultAuthorizationPolicyProvider(authOptions); 179new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions())),
Authorization\AuthorizeFilterTest.cs (1)
550var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(options));
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (5)
23var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions())); 57var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions())); 76var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions())); 114var policyProvider = new DefaultAuthorizationPolicyProvider(options); 158var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions()));
Microsoft.AspNetCore.Security.Microbenchmarks (2)
AuthorizationMiddlewareBenchmark.cs (1)
21var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions()));
AuthorizationPolicyBenchmark.cs (1)
17_policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions()));
24 references to DefaultAuthorizationPolicyProvider
CustomPolicyProvider (1)
Authorization\MinimumAgePolicyProvider.cs (1)
14public DefaultAuthorizationPolicyProvider FallbackPolicyProvider { get; }
Microsoft.AspNetCore.Authorization (3)
AuthorizationServiceCollectionExtensions.cs (1)
31services.TryAdd(ServiceDescriptor.Transient<IAuthorizationPolicyProvider, DefaultAuthorizationPolicyProvider>());
DefaultAuthorizationPolicyProvider.cs (2)
22/// Creates a new instance of <see cref="DefaultAuthorizationPolicyProvider"/>. 77public virtual bool AllowsCachingPolicies => GetType() == typeof(DefaultAuthorizationPolicyProvider);
Microsoft.AspNetCore.Authorization.Test (8)
AuthorizationPolicyFacts.cs (7)
31var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 59var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 81var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 103var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 125var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 145var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options)); 164var provider = new DefaultAuthorizationPolicyProvider(Options.Create(options));
DefaultAuthorizationServiceTests.cs (1)
27var provider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions()));
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\AuthorizationApplicationModelProvider.cs (1)
74if (policyProvider.GetType() == typeof(DefaultAuthorizationPolicyProvider))
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (1)
132var policyProvider = new DefaultAuthorizationPolicyProvider(authOptions);
Authorization\AuthorizeFilterTest.cs (1)
550var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(options));
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
AuthorizeFilterIntegrationTest.cs (2)
59var policyProvider = new Mock<DefaultAuthorizationPolicyProvider>(Options.Create<AuthorizationOptions>(new AuthorizationOptions())); 90var policyProvider = new Mock<DefaultAuthorizationPolicyProvider>(Options.Create<AuthorizationOptions>(new AuthorizationOptions()));
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (5)
23var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions())); 57var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions())); 76var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions())); 114var policyProvider = new DefaultAuthorizationPolicyProvider(options); 158var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions()));
Microsoft.AspNetCore.Security.Microbenchmarks (2)
AuthorizationMiddlewareBenchmark.cs (1)
21var policyProvider = new DefaultAuthorizationPolicyProvider(Options.Create(new AuthorizationOptions()));
AuthorizationPolicyBenchmark.cs (1)
12private DefaultAuthorizationPolicyProvider _policyProvider;