Describe the bug
When applying authentication to my API I get 500 error with
Endpoint Test.Controllers.Customers.CreateCustomerController.CreateCustomer (Test) contains authorization metadata, but a middleware was not found that supports authorization.
Configure your application startup by adding app.UseAuthorization() in the application startup code. If there are calls to app.UseRouting() and app.UseEndpoints(...), the call to app.UseAuthorization() must go between them.
To Reproduce
Steps to reproduce the behavior:
Create API and have the code below
Expected behavior
Authentication works and spyglass works
Additional Context
Looking at the code in MapEventuousSpyglass() you call app.UseRouting then app.UseEndpoints a work around I've found for now is to call app.UseRouting in my program.cs file
Describe the bug When applying authentication to my API I get 500 error with
To Reproduce Steps to reproduce the behavior: Create API and have the code below
Expected behavior Authentication works and spyglass works
Additional Context Looking at the code in
MapEventuousSpyglass()
you callapp.UseRouting
thenapp.UseEndpoints
a work around I've found for now is to callapp.UseRouting
in my program.cs file