none
Service identity check failed | Custom binding security RRS feed

  • Question

  • Hi,

    I am trying to set up my environment up and running using custom binding security. Following is my client app.config:

    <client>
      <endpoint name="" address="net.tcp://localhost:8000/ServiceModelSamples/Service" binding="customBinding" 
                bindingConfiguration="Binding1" contract="Microsoft.Samples.Security.ICalculatorDuplex" behaviorConfiguration="CalculatorClientBehavior">
        <identity>
          <userPrincipalName value = "MyDomain\\MyUser"/>
        </identity>
      </endpoint>
    </client>
    
    <bindings>
      <!-- configure a custom binding -->
      <customBinding>
        <binding name="Binding1">
          <security authenticationMode="SecureConversation" requireSecurityContextCancellation="true">
          </security>
          <textMessageEncoding messageVersion="Soap12WSAddressing10" writeEncoding="utf-8"/>
          <sslStreamSecurity requireClientCertificate="false"/>
          <tcpTransport/>
        </binding>
      </customBinding>
    </bindings>

    I have verified the identity under which service is running by using WindowsIdentity.GetCurrent().Name which gives MyDomain\MyUser value.

    When I run this solution, I get this error:

    The identity check failed for the outgoing message. The expected identity is 'identity(http://schemas.xmlsoap.org/ws/2005/05/identity/right/possessproperty:http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn)' for the 'net.tcp://localhost:8000/ServiceModelSamples/Service' target endpoint.

    Thoughts?

    Thanks!

    Friday, October 24, 2014 1:21 PM

Answers