2 writes to FallbackPolicy
Microsoft.AspNetCore.Authorization (1)
AuthorizationBuilder.cs (1)
63Services.Configure<AuthorizationOptions>(o => o.FallbackPolicy = policy);
NegotiateAuthSample (1)
Startup.cs (1)
14options.FallbackPolicy = options.DefaultPolicy;
6 references to FallbackPolicy
Microsoft.AspNetCore.Authorization (2)
DefaultAuthorizationPolicyProvider.cs (2)
52if (_cachedFallbackPolicy == null || _cachedFallbackPolicy.Result != _options.FallbackPolicy) 54_cachedFallbackPolicy = Task.FromResult(_options.FallbackPolicy);
Microsoft.AspNetCore.Authorization.Test (2)
AuthorizationBuilderTests.cs (2)
24Assert.Equal(policy, options.FallbackPolicy); 40Assert.Null(options.FallbackPolicy);
Microsoft.AspNetCore.Components.Authorization.Tests (1)
TestAuthorizationPolicyProvider.cs (1)
16=> Task.FromResult(options.FallbackPolicy);
Microsoft.AspNetCore.Mvc.Core (1)
Authorization\AuthorizeFilter.cs (1)
22/// An authorize filter is not meant to be used in combination with <see cref="AuthorizationOptions.FallbackPolicy"/>.