首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WCF net.tcp发行令牌

WCF net.tcp发行令牌
EN

Stack Overflow用户
提问于 2015-11-02 16:37:07
回答 1查看 710关注 0票数 6

是否有人有当前使用net.tcp与发布令牌的消息安全模式的示例。我目前有一个安全令牌服务,它可以发出令牌,但不确定如何使用net.tcp配置它。我只看到使用ws2007FederationHttpBinding的例子

代码语言:javascript
复制
<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。有没有人?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-01-11 16:25:26

我通过设置allowInsecureTransport=true获得了一个工作版本。我也删除了安全谈话,因为我不想交谈。

代码语言:javascript
复制
<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>`
票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33482505

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档