in CredentialProvider.Microsoft/Util/HttpClientFactory.cs [21:37]
static HttpClientFactory()
{
var httpClient = new HttpClient(new HttpClientHandler
{
// This is needed to make IWA work. See:
// https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/e15befb5f0a6cf4757c5abcaa6487e28e7ebd1bb/src/client/Microsoft.Identity.Client/PlatformsCommon/Shared/SimpleHttpClientFactory.cs#LL26C1-L27C73
UseDefaultCredentials = true
});
// Add program context to headers if available
if (ProgramContext != null)
{
httpClient.DefaultRequestHeaders.UserAgent.Add(ProgramContext);
}
httpClientFactory = new(httpClient);
}