6 writes to DefaultPolicy
Microsoft.AspNetCore.Authorization (1)
AuthorizationBuilder.cs (1)
48Services.Configure<AuthorizationOptions>(o => o.DefaultPolicy = policy);
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationPolicyFacts.cs (1)
78options.DefaultPolicy = new AuthorizationPolicyBuilder("default").RequireClaim("default").Build();
Microsoft.AspNetCore.Routing.FunctionalTests (4)
EndpointRoutingIntegrationTest.cs (4)
111services.AddAuthorization(options => options.DefaultPolicy = new AuthorizationPolicyBuilder().RequireAssertion(_ => true).Build()); 143services.AddAuthorization(options => options.DefaultPolicy = new AuthorizationPolicyBuilder().RequireAssertion(_ => true).Build()); 204services.AddAuthorization(options => options.DefaultPolicy = new AuthorizationPolicyBuilder().RequireAssertion(_ => true).Build()); 235services.AddAuthorization(options => options.DefaultPolicy = new AuthorizationPolicyBuilder().RequireAssertion(_ => true).Build());
5 references to DefaultPolicy
Microsoft.AspNetCore.Authorization (2)
DefaultAuthorizationPolicyProvider.cs (2)
38if (_cachedDefaultPolicy == null || _cachedDefaultPolicy.Result != _options.DefaultPolicy) 40_cachedDefaultPolicy = Task.FromResult(_options.DefaultPolicy);
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationBuilderTests.cs (1)
55Assert.Equal(policy, options.DefaultPolicy);
Microsoft.AspNetCore.Components.Authorization.Tests (1)
TestAuthorizationPolicyProvider.cs (1)
13=> Task.FromResult(options.DefaultPolicy);
NegotiateAuthSample (1)
Startup.cs (1)
14options.FallbackPolicy = options.DefaultPolicy;