Writing integration tests for .net core endpoints with authentication
I have built and endpoint using asp.net api controllers with the authorize attribute. I am using the TestAuthHandler with a custom web app factory approach to test these endpoints but I still get unauthorized.
I realized HandleAuthenticateAsync method I have overriden in the TestAuthHandler is not being invoked.