예제 #1
0
 private static void ConfigureAuthentication(HttpTransportBindingElement http, HttpTransportSecurity transportSecurity)
 {
     transportSecurity._clientCredentialType = HttpClientCredentialTypeHelper.MapToClientCredentialType(http.AuthenticationScheme);
     transportSecurity.Realm = http.Realm;
     transportSecurity._extendedProtectionPolicy = http.ExtendedProtectionPolicy;
 }
예제 #2
0
 internal static void ConfigureTransportProtectionAndAuthentication(HttpsTransportBindingElement https, HttpTransportSecurity transportSecurity)
 {
     ConfigureAuthentication(https, transportSecurity);
     if (https.RequireClientCertificate)
     {
         transportSecurity.ClientCredentialType = HttpClientCredentialType.Certificate;
     }
 }