25 references to DefaultAuthorizationPolicyProvider
CustomPolicyProvider (1)
Authorization\MinimumAgePolicyProvider.cs (1)
28
FallbackPolicyProvider = new
DefaultAuthorizationPolicyProvider
(options);
Microsoft.AspNetCore.Authorization.Test (9)
AuthorizationMiddlewareTests.cs (1)
330
public TestDefaultPolicyProvider(IOptions<AuthorizationOptions> options, bool canCache) :
base
(options)
AuthorizationPolicyFacts.cs (7)
31
var provider = new
DefaultAuthorizationPolicyProvider
(Options.Create(options));
59
var provider = new
DefaultAuthorizationPolicyProvider
(Options.Create(options));
81
var provider = new
DefaultAuthorizationPolicyProvider
(Options.Create(options));
103
var provider = new
DefaultAuthorizationPolicyProvider
(Options.Create(options));
125
var provider = new
DefaultAuthorizationPolicyProvider
(Options.Create(options));
145
var provider = new
DefaultAuthorizationPolicyProvider
(Options.Create(options));
164
var provider = new
DefaultAuthorizationPolicyProvider
(Options.Create(options));
DefaultAuthorizationServiceTests.cs (1)
27
var provider = new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions()));
Microsoft.AspNetCore.Mvc.Core.Test (8)
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (7)
23
new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions())),
41
new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions())),
59
new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions())),
81
new
DefaultAuthorizationPolicyProvider
(options),
107
new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions())),
132
var policyProvider = new
DefaultAuthorizationPolicyProvider
(authOptions);
179
new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions())),
Authorization\AuthorizeFilterTest.cs (1)
550
var policyProvider = new
DefaultAuthorizationPolicyProvider
(Options.Create(options));
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (5)
23
var policyProvider = new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions()));
57
var policyProvider = new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions()));
76
var policyProvider = new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions()));
114
var policyProvider = new
DefaultAuthorizationPolicyProvider
(options);
158
var policyProvider = new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions()));
Microsoft.AspNetCore.Security.Microbenchmarks (2)
AuthorizationMiddlewareBenchmark.cs (1)
21
var policyProvider = new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions()));
AuthorizationPolicyBenchmark.cs (1)
17
_policyProvider = new
DefaultAuthorizationPolicyProvider
(Options.Create(new AuthorizationOptions()));