【问题标题】:WSO2IS does not respect the requested GET binding in SAML2WSO2IS 不尊重 SAML2 中请求的 GET 绑定
【发布时间】:2014-03-06 17:03:30
【问题描述】:

SAML2 请求通过 HTTP-GET 绑定发送到 WSO2 身份服务器,但它仍会发布响应。让 WSO2IS 尊重请求的任何想法?

[2014-03-06 17:52:25,961] DEBUG {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Request message <samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_73d5b9c1-d448-4076-9e9d-98767f1e2a2d" Version="2.0" IssueInstant="2014-03-06T17:52:21" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-GET" AssertionConsumerServiceURL="http://host.tld/java-saml/consume.jsp"><saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">http://host.tld/java-saml/</saml:Issuer><samlp:NameIDPolicy Format="urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified" AllowCreate="true"></samlp:NameIDPolicy><samlp:RequestedAuthnContext Comparison="exact"></samlp:RequestedAuthnContext><saml:AuthnContextClassRef xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml:AuthnContextClassRef></samlp:AuthnRequest>

火狐的结果:

您现在被重定向回http://host.tld/java-saml/consume.jsp 如果重定向失败,请点击发帖按钮。

有解决办法吗?我需要在请求中还是在 WSO2IS 中进行配置?

【问题讨论】:

    标签: wso2 identity saml wso2is


    【解决方案1】:

    是的。它必须是预期的行为,SAML 响应必须作为 POST 从 IDP 发送到 SP。 (不能使用 HTTP 重定向)它在规范中定义。请检查 saml-profile 规范。 WSO2 身份服务器可能不支持工件绑定,因此它执行 HTTP POST。

    The identity provider issues a &lt;Response&gt; message to be delivered by the user agent to the service provider. Either the HTTP POST, or HTTP Artifact binding can be used to transfer the message to the service provider through the user agent. The message may indicate an error, or will include (at least) an authentication assertion. The HTTP Redirect binding MUST NOT be used, as the response will typically exceed the URL length permitted by most user agents.

    我猜,POST 按钮和您显示的页面可以更改和修改。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-12
      • 1970-01-01
      • 1970-01-01
      • 2014-07-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多