title: Consuming a WCF service from applications with different types of authentication
body: <p>I have a WCF service and I'm trying to consume it from two WPF applications. First, I have a WPF project with Windows authentication, sending credentials to the WCF service and consuming a DataBase with this credentials. It goes OK:</p>
  
  <p>Connection string:</p>
  
  <pre><code>&lt;add name="connection" connectionString="Data Source=....;Initial Catalog=db;Integrated Security=SSPI;Application Name=dbn;Connect Timeout=350;"/&gt;
  </code></pre>
  
  <p>Binding and behavior:</p>
  
  <pre><code>&lt;bindings&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding&gt;
        &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="Basic"/&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior&gt;
        &lt;serviceMetadata httpGetEnabled="false" httpsGetEnabled="true"/&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
        &lt;serviceAuthorization impersonateCallerForAllOperations="true"/&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  </code></pre>
  
  <p>Behavior of service methods:</p>
  
  <pre><code>[OperationBehavior(Impersonation = ImpersonationOption.Allowed)]
  </code></pre>
  
  <p>As I said, it goes OK, but now I want to call this service from another WPF service without authentication, and consume the Data Base with SQL authentication:</p>
  
  <p>Connection string:</p>
  
  <pre><code>&lt;add name="sqlconnection" providerName="System.Data.SqlClient" connectionString="Data Source=..."/&gt;
  </code></pre>
  
  <p>To Call different connectionStrings from methods it's not the problem, but maybe I need different binding or behavior to makes it work. How I can configure that from the WCF service? It is possible?</p>