Describe the bug
Trying to require authorization on an endpoint route without passing authorize data or a policy name results in a compilation error.
To Reproduce
app.UseRouting(routes =>
{
routes.MapApplication();
routes.MapGet("/", context =>
{
return Task.CompletedTask;
})
.RequireAuthorization();
});
Expected behavior
It shouldn't result in a compilation error.
Screenshots

cc @JamesNK @rynowak
Describe the bug
Trying to require authorization on an endpoint route without passing authorize data or a policy name results in a compilation error.
To Reproduce
Expected behavior
It shouldn't result in a compilation error.
Screenshots
cc @JamesNK @rynowak