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