Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF - IIS Windows Authentication
    primarykey
    data
    text
    <p><br> I have been trying to get my WCF to work with Windows Authentication. The following works fine when anonymous is turned on. Have searched many internet articles and cannot get this to work. Thanks </p> <p><em>Here is my configuration:</em><br> <strong>IIS</strong><br> Basic Authentication and Windows Authentication turned on.<br> Anonymous turned off</p> <p><strong>CLIENT:</strong></p> <pre><code>&lt;system.serviceModel&gt; &lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name="WSHttpBinding_IEchoService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /&gt; &lt;security mode="Message"&gt; &lt;transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /&gt; &lt;message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;client&gt; &lt;endpoint address="http://id.unittest/Services/EchoService.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IEchoService" contract="IEchoService" name="WSHttpBinding_IEchoService"&gt; &lt;identity&gt; &lt;servicePrincipalName value="host/mikev-ws" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;/client&gt; &lt;/system.serviceModel&gt; </code></pre> <p><strong>SERVER:</strong></p> <pre><code>&lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="MyServiceTypeBehaviors"&gt; &lt;serviceMetadata httpGetEnabled="true" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;services&gt; &lt;service name="Project.API.Services.EchoService" behaviorConfiguration="MyServiceTypeBehaviors"&gt; &lt;endpoint address="" binding="wsHttpBinding" contract="Project.API.Services.IEchoService" /&gt; &lt;endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex"/&gt; &lt;/service&gt; &lt;/services&gt; &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true"/&gt; &lt;/system.serviceModel&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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