C
C#11mo ago
Fumse

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.
1 Reply
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server