I'm using the AspNetCore TestServer and trying to connect to an API service configured for NTLM Authentication. Th service I'm connecting to needs to access the System.Security.Claims.ClaimsPrincipal.Identity.
From my Console application I can initialise he HTTPClient as follows and it works
HttpClientHandler handler = new HttpClientHandler() { UseDefaultCredentials = true, PreAuthenticate = true };HttpClient client = new HttpClient(handler);
However, the TestServer CreateClient method does not accept a HttpClientHandler. So how do I configure to use UseDefaultCredentials?