<PackageReference Include="Microsoft.Identity.Client" Version="4.85.2" />

Microsoft.Identity.Client.IMsalSFHttpClientFactory

Factory responsible for creating HttpClient with a custom server certificate validation callback. This is useful for the Service Fabric scenario where the server certificate validation is required using the server cert. See https://learn.microsoft.com/dotnet/api/system.net.http.httpclient?view=net-7.0#instancing for more details.
namespace Microsoft.Identity.Client { public interface IMsalSFHttpClientFactory : IMsalHttpClientFactory { HttpClient GetHttpClient(Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> validateServerCert); } }