Spring Boot and SAML 2.0

前端 未结 5 2390
深忆病人
深忆病人 2020-12-24 14:16

Is there a way to integrate SAML 2.0 in a Spring Boot-based application? I\'d like to implement my own SP and communicate with a remote IdP.

5条回答
  •  清歌不尽
    2020-12-24 15:21

    I tried @vdenotaris' solution, but does not seem to work with current spring-boot, and thus given up that approach.

    So as an alternate solution I used shibboleth to do all the SAML stuff using the mod_shib2 module in apache httpd, and run tomcat using mod_jk (mod_proxy_ajp could also be used) behind the said apache instance. Tomcat receives all the required SAML attributes as request attributes, and I only have to store the idp and the user id in the regular user table to connect the internal authentication to the external (I need both SAML and password-based authentication).

提交回复
热议问题