but a middleware was not found that supports authorization.
Configure your application startup by adding app.UseAuthorization() inside the call to Configure(..) in
the application startup code. The call to app.UseAuthorization() must appear between app.UseRouting()
and app.UseEndpoints(...).