4 references to RequireAuthorization
Microsoft.AspNetCore.Authorization.Test (2)
AuthorizationEndpointConventionBuilderExtensionsTests.cs (2)
151
builder.
RequireAuthorization
(policyBuilder => policyBuilder.Requirements.Add(requirement));
177
builder.
RequireAuthorization
(policyBuilder => policyBuilder.Requirements.Add(requirement));
Microsoft.AspNetCore.Http.Connections.Tests (1)
MapConnectionHandlerTests.cs (1)
41
endpoints => endpoints.RequireAuthorization(policy1).
RequireAuthorization
(pb => pb.Requirements.Add(req))))
Microsoft.AspNetCore.SignalR.Tests (1)
MapSignalRTests.cs (1)
113
.
RequireAuthorization
(policy => policy.AddRequirements(req))))