【问题标题】:How to configure Spring SAML to send "assertionConsumerServiceIndex" instead of "assertionConsumerServiceUrl"?如何配置 Spring SAML 以发送“assertionConsumerServiceIndex”而不是“assertionConsumerServiceUrl”?
【发布时间】:2016-01-03 07:27:28
【问题描述】:

如何配置 Spring SAML 以在 SAML 身份验证请求中发送“assertionConsumerServiceIndex”而不是“assertionConsumerServiceUrl”?

另一个问题: 我在哪里可以报告 Spring 安全 SAML 项目的问题?

谢谢

【问题讨论】:

    标签: spring-security spring-saml saml-2.0


    【解决方案1】:

    是的,我们需要改变 buildReturnAddress() 在 f/w 中的行为方式。我们可以简单地通过扩展WebSSOProfileImpl 并在我们的服务提供者代码中覆盖buildReturnAddress() 方法来做到这一点。

    【讨论】:

      【解决方案2】:

      得到它的工作,但不是通过配置文件。我在 Spring SAML 源代码中发现了以下注释:

      // AssertionConsumerServiceURL + ProtocolBinding is mutually exclusive with AssertionConsumerServiceIndex, we use first one here
      

      在创建新的 AuthNRequest 时,我必须修改 WebSSOProfileImpl 类的 buildReturnAddress 方法以插入 AssertionConsumerServiceIndex 而不是 AssertionConsumerServiceURL + ProtocolBinding

      if (service != null) {
          request.setAssertionConsumerServiceIndex(service.getIndex());
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-02-26
        • 2016-02-17
        • 2015-02-11
        • 2020-09-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-02-27
        相关资源
        最近更新 更多