gpt4 book ai didi

WCF net.tcp 发行的 token

转载 作者:行者123 更新时间:2023-12-04 15:09:36 25 4
gpt4 key购买 nike

有没有人有使用 net.tcp 和已发布 token 的消息安全模式的当前示例。我目前有一个发行 token 的安全 token 服务,但不确定如何使用 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,因为我不想要 session 。

<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>`

关于WCF net.tcp 发行的 token ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33482505/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com