.NET 6 API MINIMAL AUTORIZAÇÃO NET 6
app.MapGet(“/AuthorizedResource”, (Func<string>)(
[Authorize] () => “Action Succeeded”)
).Produces(StatusCodes.Status200OK)
.WithName(“Authorized”).WithTags(“Accounts”).RequireAuthorization();
Wrong Willet