WCF net.tcp颁发的令牌

WCF net.tcp颁发的令牌,wcf,wif,Wcf,Wif,是否有人有当前使用net.tcp和已颁发令牌的消息安全模式的示例。我目前有一个安全令牌服务,它发出令牌,但不确定如何使用net.tcp对其进行配置。我只看到使用ws2007FederationHttpBinding的示例 <customBinding> <binding name="wsFed"> <security authenticationMode="SecureConversation" requireSecurityContextCan

是否有人有当前使用net.tcp和已颁发令牌的消息安全模式的示例。我目前有一个安全令牌服务,它发出令牌,但不确定如何使用net.tcp对其进行配置。我只看到使用ws2007FederationHttpBinding的示例

<customBinding>
    <binding name="wsFed">
      <security authenticationMode="SecureConversation" requireSecurityContextCancellation="true">

        <secureConversationBootstrap authenticationMode="IssuedToken">

          <issuedTokenParameters tokenType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1">
            <issuer address="http://localhost/STSWebHost/STSService.svc" binding="ws2007HttpBinding" />
          </issuedTokenParameters>

        </secureConversationBootstrap>
      </security>


      <tcpTransport />

    </binding>
  </customBinding>


我一直得到加密算法不支持的错误?ws2007FederationHttpBinding可以正常工作,但我需要使用net.tcp。有人吗?

通过设置allowInsecureTransport=true,我有一个工作版本。我还删除了secureconversation,因为我不需要会话

<customBinding>
    <binding
     name="netTcpFederated">
      <security
        authenticationMode="IssuedTokenOverTransport"
        allowInsecureTransport="true" >

        <issuedTokenParameters keyType="BearerKey" />

      </security>

      <binaryMessageEncoding>
        <readerQuotas
          maxStringContentLength="1048576"
          maxArrayLength="2097152" />
      </binaryMessageEncoding>

      <tcpTransport
        maxReceivedMessageSize="2162688" />
    </binding>

   </customBinding>`

`

我这样做了,但是没有使用带有令牌的net.tcp的自定义绑定。我有一个使用wsHttpBinding的令牌服务,但希望使用令牌与net.tcp绑定,因为我在防火墙后面。我了解其他绑定,但不熟悉net.tcp绑定,但下面有一个示例。