【问题标题】:Spring security SAML2 working with more than one idpSpring security SAML2 使用多个 idp
【发布时间】:2017-01-25 16:07:09
【问题描述】:

我关注了spring security 快速入门和示例应用程序, 并设法与一个 IDP (ssoCircle) 完全集成。是否可以配置 securityContext.xml 以支持多个 IDP 并配置 Spring 过滤器/路由器以通过创建几个不同的路径来使用不同的 IDP?

例如:

  • myhost:8080/idpOne -> 将跟随第一个 IDP
  • myhost:8080/idpTwo -> 将跟随第二个 IDP

【问题讨论】:

    标签: java spring-security saml-2.0


    【解决方案1】:

    您可以在 security-context*.xml 中将 IDP 作为列表传递:

    用于 Spring Security SAML 的 Github 项目有一个 example

    documentation 也在 扩展元数据 部分中解释了这一点

    【讨论】:

    • 我的问题更多的是关于路由,我如何通过配置 XML 从一个 idp 或第二个 idp 路由?
    • 在 idp 发现页面中,选择要关注的 idp。所以你不需要自己为不同的idp实现子路径。
    猜你喜欢
    • 2020-08-24
    • 2020-06-24
    • 2020-10-06
    • 2020-06-22
    • 2018-12-18
    • 1970-01-01
    • 2016-05-16
    • 2020-05-02
    • 2021-12-18
    相关资源
    最近更新 更多