【问题标题】:Back-channel logout request format in Spring Security SAMLSpring Security SAML 中的反向通道注销请求格式
【发布时间】:2016-02-04 10:40:47
【问题描述】:

当使用 Spring Security SAML 扩展 时,我正在努力实现 单次注销 功能。在这种情况下,当从另一个应用程序发起单次注销请求时,必须从身份提供者(WSO2 身份服务器)向 Spring 安全 SAML 单次注销端点发送一个反向通道请求。问题在于发送到 Spring Security 应用程序的反向通道注销请求的格式。我尝试以以下 [1] 和 [2] 格式发送请求,但分别收到 [3] 和 [4] 作为响应。

请帮助我确定需要作为反向通道注销请求发送到 Spring Security 应用程序的正确格式。

[1]SAML 请求:

    <saml2p:LogoutRequest>
    <saml2:Issuer>...</saml2:Issuer>...
    </saml2p:LogoutRequest>

[2]SAML SOAP 绑定:

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
    <saml2p:LogoutRequest>
    <saml2:Issuer>...</saml2:Issuer>...
    </saml2p:LogoutRequest>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

[3]响应:暂时移动,状态码:302

[4]响应:内部服务器错误,状态码:500

参考:

http://docs.spring.io/spring-security-saml/docs/current/reference/html/chapter-quick-start.html

https://docs.oasis-open.org/security/saml/v2.0/saml-bindings-2.0-os.pdf

【问题讨论】:

    标签: java spring spring-security saml


    【解决方案1】:

    我有一个关于单次注销的类似问题。所以我把我的附加到你的后面。 在我的场景中,它是使用 Http-Redirect 的前端通道绑定。 我想知道在从其他应用程序发起单个注销请求时,Spring Security SAML 扩展的幕后发生了什么。 哪些 servlet 或过滤器在这种情况下运行,因此我可以使用我的代码来清理我在单点登录步骤中放入的内容。

    非常感谢。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-21
      • 2015-01-03
      • 1970-01-01
      • 2018-01-24
      • 2018-10-13
      • 2016-10-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多