25 references to DefaultAuthorizationPolicyProvider
CustomPolicyProvider (1)
Authorization\MinimumAgePolicyProvider.cs (1)
28FallbackPolicyProvider = new DefaultAuthorizationPolicyProvider(options);
Microsoft.AspNetCore.Authorization.Test (9)
AuthorizationMiddlewareTests.cs (1)
330public TestDefaultPolicyProvider(IOptions<AuthorizationOptions> options, bool canCache) : base(options)
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()));