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.
HttpClient GetHttpClient(Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> validateServerCert)
Method returning an HTTP client that will be used to validate the server certificate through the provided callback.
This method is useful when custom certificate validation logic is required,
for the managed identity flow running on a service fabric cluster.