【问题标题】:How to enable proxy service security in WSO2 ESB 4.9.0 Policy file for Digest如何在 WSO2 ESB 4.9.0 策略文件中为 Digest 启用代理服务安全性
【发布时间】:2019-07-08 05:06:41
【问题描述】:

我在使用 wso2 ESB 中的壁垒来签署我的肥皂消息时遇到问题,我使用附加到传出端点的 XML 策略,该策略需要指定密码摘要作为摘要使用的算法(算法套件:密码摘要)

问题是我的 wss 安全标头就像其设置的 #PasswordText 下方一样

<wsse:UsernameToken wsu:Id="UsernameToken-F8983EC106E3CD7A6915501268083805">
            <wsse:Username>userid</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
            <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">2DLoIevf9t75A7jm90+Anw==</wsse:Nonce>
            <wsu:Created>2019-02-14T06:46:48.379Z</wsu:Created>
         </wsse:UsernameToken>`enter code here`

我需要的是像下面这样的 wss 安全标头应该设置#PasswordDiges

<wsse:UsernameToken wsu:Id="UsernameToken-F8983EC106E3CD7A6915501267560244">
            <wsse:Username>userid</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">SDSDSDDDSDDDDSDD==</wsse:Password>
            <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">SDSDRRERRsdDSDSDD==</wsse:Nonce>
            <wsu:Created>2019-02-14T06:45:56.024Z</wsu:Created>
         </wsse:UsernameToken>

如何使用 passowrd Digest 作为密码摘要的算法方法使 wso2 ESB 签署一个肥皂消息?

【问题讨论】:

  • 您的保单文件现在看起来如何?
  • @jan 谢谢我设法配置它。 docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/…">

标签: web-services authentication wso2esb digest digest-authentication


【解决方案1】:
#PasswordDiges like below 

<sp:UsernameToken sp:IncludeToken="docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/…">
 <wsp:Policy> <sp:HashPassword/> <sp:WssUsernameToken11/> </wsp:Policy>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多