40 references to RequireAuthenticatedUser
Aspire.Dashboard (1)
Authentication\OpenIdConnect\AuthorizationPolicyBuilderExtensions.cs (1)
41builder.RequireAuthenticatedUser();
Aspire.Hosting (1)
Dashboard\DashboardServiceHost.cs (1)
101.RequireAuthenticatedUser()
Microsoft.AspNetCore.Authorization (1)
AuthorizationOptions.cs (1)
32public AuthorizationPolicy DefaultPolicy { get; set; } = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
Microsoft.AspNetCore.Authorization.Test (30)
AuthorizationBuilderTests.cs (4)
16var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 31var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 47var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 78var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
AuthorizationMiddlewareResultHandlerTests.cs (7)
19var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 33var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 47var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 66.RequireAuthenticatedUser() 86var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 105.RequireAuthenticatedUser() 125var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
AuthorizationMiddlewareTests.cs (14)
27var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 46var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 66var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 85var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 106var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 128var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 150var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 172var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().AddAuthenticationSchemes("schema1", "schema2").Build(); 430policyProvider.Setup(p => p.GetDefaultPolicyAsync()).ReturnsAsync(new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build()); 510policyProvider.Setup(p => p.GetDefaultPolicyAsync()).ReturnsAsync(new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build()); 532policyProvider.Setup(p => p.GetDefaultPolicyAsync()).ReturnsAsync(new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build()); 566var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 587var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build(); 608var policy = new AuthorizationPolicyBuilder("Fails").RequireAuthenticatedUser().Build();
DefaultAuthorizationServiceTests.cs (5)
585options.AddPolicy("Any", policy => policy.RequireAuthenticatedUser()); 610options.AddPolicy("Any", policy => policy.RequireAuthenticatedUser()); 999return Task.FromResult(new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build()); 1009return Task.FromResult(new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build()); 1038return Task.FromResult(new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build());
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\FunctionalTestsServiceCollectionExtensions.cs (1)
48.RequireAuthenticatedUser()
Microsoft.AspNetCore.Mvc.Core.Test (4)
Authorization\AuthorizeFilterTest.cs (4)
160var authorizeFilter = new AuthorizeFilter(new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build()); 175var authorizeFilter = new AuthorizeFilter(new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build()); 191var authorizeFilter = new AuthorizeFilter(new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build()); 206.RequireAuthenticatedUser()
MinimalJwtBearerSample (1)
Program.cs (1)
16policy.RequireAuthenticatedUser();
StaticFilesAuth (1)
Startup.cs (1)
37builder.RequireAuthenticatedUser().RequireAssertion(context =>