【问题标题】:shibboleth-saml with Spring boot带有 Spring Boot 的 shibboleth-saml
【发布时间】:2016-09-29 17:16:12
【问题描述】:

我正在尝试将 shibboleth sp 与 Spring-boot 集成。不使用 spring saml 插件的原因是因为我有两个应用程序,一个是用 spring 编写的,另一个是调用 spring 服务的 angular 应用程序。我需要保护两者,所以我一直沿用 apache 2.4 Red Hat。 apache 将对这两个应用程序做一个 mod 代理。 SAML 工作正常,它正在重定向到我的应用程序。但我无法在我的应用程序中接收来自 Shibboleth 的属性。我可以在 shibboleth 会话摘要页面中看到属性。我启用了日志,我可以看到属性正在被映射。

在我的 Spring Boot 应用程序中,我写了一个

public class AuthInterceptor extends HandlerInterceptorAdapter 
{
      @Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
  //I am inspecting all attributes in request.getAttributes(), I could not find any attribute set my shibboleth.
}

}

我的理解是shibboleth属性设置默认开启,header值默认关闭。您能告诉我如何将 shibboleth 中映射的属性传递给应用程序吗?

【问题讨论】:

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


    【解决方案1】:

    您可能想查看https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPJavaInstall。它描述了如何配置 Apache 和 Tomcat/Jetty 以将 SAML 属性从 Apache/SP 传输到您的应用程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-18
      • 1970-01-01
      • 2010-12-22
      • 2014-06-02
      • 2022-08-10
      • 2020-06-09
      • 2017-05-23
      • 2020-07-31
      相关资源
      最近更新 更多