Fumse
Fumse
CC#
Created by Fumse on 1/23/2024 in #help
Intergration test skip [Authorize] tag on controller
Hello I am trying to use PactNet and I am having trouble with auth on the service. controller 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. Is it possible to skip auth or allow all? I have a different startup for the tests so its no problem in production.
2 replies