42 references to AddAuthorization
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
766builder.Services.AddAuthorization(options =>
BasicWebSite (1)
ConfigureAuthPolicies.cs (1)
12services.AddAuthorization(options =>
CustomAuthorizationFailureResponse (1)
Startup.cs (1)
36services.AddAuthorization(options =>
JwtSample (1)
Startup.cs (1)
20services.AddAuthorization(options =>
Microsoft.AspNetCore.Authorization.Test (21)
DefaultAuthorizationServiceTests.cs (20)
513services.AddAuthorization(options => 539services.AddAuthorization(options => 561services.AddAuthorization(options => 583services.AddAuthorization(options => 608services.AddAuthorization(options => 641services.AddAuthorization(options => 662services.AddAuthorization(options => 703services.AddAuthorization(options => 723services.AddAuthorization(options => 751services.AddAuthorization(options => 778services.AddAuthorization(options => 962services.AddAuthorization(options => 981services.AddAuthorization(options => 1020services.AddAuthorization(options => 1059services.AddAuthorization(options => { }); 1085services.AddAuthorization(options => options.AddPolicy("Fail", p => p.RequireAssertion(c => false))); 1126services.AddAuthorization(options => options.AddPolicy("Success", p => p.RequireAssertion(c => true))); 1145services.AddAuthorization(options => options.AddPolicy("Success", p => p.RequireAssertion(c => true))); 1201services.AddAuthorization(options => options.AddPolicy("Log", p => 1235services.AddAuthorization(options => options.AddPolicy("Log", p =>
PassThroughAuthorizationHandlerTests.cs (1)
32services.AddAuthorization(options =>
Microsoft.AspNetCore.Mvc.Core.Test (1)
Authorization\AuthorizeFilterTest.cs (1)
471.AddAuthorization(options =>
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());
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Startup.cs (1)
36services.AddAuthorization(options =>
Microsoft.AspNetCore.SignalR.Tests (4)
HubConnectionHandlerTests.cs (4)
2195services.AddAuthorization(options => 2231services.AddAuthorization(options => 2331services.AddAuthorization(options => 3728services.AddAuthorization(options =>
MinimalJwtBearerSample (1)
Program.cs (1)
13builder.Services.AddAuthorization(options =>
NegotiateAuthSample (1)
Startup.cs (1)
12services.AddAuthorization(options =>
SecurityWebSite (3)
StartupWithGlobalAuthFilter.cs (1)
21services.AddAuthorization(options =>
StartupWithGlobalAuthFilterWithoutEndpointRouting.cs (1)
21services.AddAuthorization(options =>
StartupWithGlobalDenyAnonymousFilterWithUseMvc.cs (1)
22services.AddAuthorization(options =>
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
47services.AddAuthorization(options =>
StaticFilesAuth (1)
Startup.cs (1)
28services.AddAuthorization(options =>