Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This page on MSDN explains WCF Binding Security.</p> <p><a href="http://msdn.microsoft.com/en-us/library/ms729700.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/ms729700.aspx</a></p> <blockquote> <p>The BasicHttpBinding class is primarily used to interoperate with existing Web services, and many of those services are hosted by Internet Information Services (IIS). Consequently, the transport security for this binding is designed for seamless interoperation with IIS sites. This is done by setting the security mode to Transport and then setting the client credential type. The credential type values correspond to IIS directory security mechanisms. The following code shows the mode being set and the credential type set to Windows. You can use this configuration when both client and server are on the same Windows domain.</p> <p>C#</p> <pre><code>BasicHttpBinding b = new BasicHttpBinding(); b.Security.Mode = BasicHttpSecurityMode.Transport ; b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows; </code></pre> <p>Or, in configuration:</p> <pre><code>&lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="SecurityByTransport"&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="Windows" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; </code></pre> </blockquote> <p>To enable ssl, without a login, set clientCredentialType to "None".</p> <p>Options for security mode are:</p> <p>None, Transport, Message, TransportWithMessageCredential and TransportCredentialOnly</p> <p>You can find more details at: <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.basichttpsecuritymode.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/system.servicemodel.basichttpsecuritymode.aspx</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload