title: Credentials passed from client to WCF do not make it there
body: <p>Im trying to pass windows credentials into WCF service that requires windows authentication but it seems like my credentials are not making it into the service. My service does not throw any errors but when I check either of the 2 below they are empty.
   <code>var user = WindowsIdentity.GetCurrent().User;
    var callerUserName = ServiceSecurityContext.Current.WindowsIdentity.User;</code></p>
  
  <p><strong>Here is my client side code</strong><code>
  ServiceReference1.DispatchServiceClient service = new DispatchServiceClient();
  service.ClientCredentials.Windows.ClientCredential = ServiceCredentialsManager.GetNetworkCredentials();
  service.ClientCredentials.UserName.UserName= ServiceCredentialsManager.GetNetworkCredentials().UserName;
  service.ClientCredentials.UserName.Password = ServiceCredentialsManager.GetNetworkCredentials().Password;</code></p>
  
  <p><strong>Client config -</strong>
        </p>
  
  <pre><code> &lt;basicHttpBinding&gt;
      &lt;binding name="BasicHttpsBinding_IDispatchService"&gt;
        &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="Windows" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/basicHttpBinding&gt;
    &lt;basicHttpsBinding&gt;
      &lt;binding name="basicHttpsBindingMax" maxBufferSize="999999999"
        maxReceivedMessageSize="999999999"&gt;
        &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="Windows" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/basicHttpsBinding&gt;
  &lt;/bindings&gt;
  </code></pre>
  
  <p><strong>Service config -</strong></p>
  
  <pre><code> &lt;system.serviceModel&gt;
        &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
            &lt;binding name="basicHttpsBinding"&gt;
                &lt;security mode="Transport"&gt;
                    &lt;transport clientCredentialType="Windows" /&gt;
                &lt;/security&gt;
            &lt;/binding&gt;
        &lt;/basicHttpBinding&gt;
    &lt;/bindings&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior&gt;
        &lt;!-- To avoid disclosing metadata information, set the values below to false before deployment --&gt;
        &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /&gt;
        &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  &lt;protocolMapping&gt;
    &lt;add binding="basicHttpsBinding" scheme="https" /&gt;
  &lt;/protocolMapping&gt;
  &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /&gt;
  </code></pre>
  
  <p></p>