【问题标题】:What are the differences between security mode="Transport" and security mode="TransportCredentialOnly"安全模式="Transport" 和安全模式="TransportCredentialOnly" 有什么区别
【发布时间】:2010-12-19 01:11:37
【问题描述】:

当我将security mode="Transport"BasicHttpBinding 一起使用并在ISS 7.0 中设置ssl 时,security mode="Transport"security mode="TransportCredentialOnly" 有什么区别?

【问题讨论】:

    标签: wcf wcf-security


    【解决方案1】:

    检查这里: http://developers.de/blogs/damir_dobric/archive/2006/07/31/890.aspxhttp://msdn.microsoft.com/en-us/library/ff648505.aspx

    Transport 似乎需要 HTTPS 来加密凭据,如果没有 SSL,则会引发异常。 TransportCredentialOnly 将以纯文本和未加密的形式发送凭据,建议仅用于测试!

    祝你好运!!

    【讨论】:

    • 我在使用TransportCredentialOnly 时仍然收到错误SOAP Header Missing。我已经指定了ClientCredentials,并且请求需要通过 http 发送,但不是运气。有什么想法吗?
    【解决方案2】:

    使用 TransportCredentialOnly 安全模式,底层安全传输层(通常是 TLS/SSL)为通信提供完整性和机密性保护,而 SOAP 消息传递层处理在 SOAP 消息中传输客户端凭据。

    换句话说,TransportCredentialOnly 安全模式在 SOAP 消息中传递用户凭据,而不对 SOAP 消息进行加密或签名,并且底层传输连接(通常是 TLS/SSL)需要确保消息内容不能被他人看到或更改第三方。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-17
      • 1970-01-01
      • 1970-01-01
      • 2010-09-05
      • 1970-01-01
      • 1970-01-01
      • 2010-12-15
      • 2019-03-12
      相关资源
      最近更新 更多