本文介绍了如何使用 saml 在我的 spring 应用程序中实现 sso?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找与 spring 应用程序的 saml 集成.我已经阅读了一些文档,但大部分都是基于 Spring Boot 应用程序.有人可以帮我在 spring 应用程序中为 sso 集成 saml 或建议相同的好文档指南.

I am looking for saml integration with spring application. I have read some of documents but mostly all are based on spring boot application. Can someone help me to integrate saml in spring application for sso Or suggest the good document guide for the same.

提前致谢.

推荐答案

您应该能够利用 Spring Security SAML 项目:

You should be able to take advantage of the Spring Security SAML project:

https://github.com/spring-projects/spring-security-saml

存储库中有一个示例项目,用于演示如何使用该库.它位于这里:

There is a sample project in the repository that demonstrates how one may be able to use the library. It's located here:

https://github.com/spring-projects/spring-security-saml/tree/master/sample

请注意,此扩展的当前官方版本是针对 OpenSAML v2 构建的,并且有一个 develop 分支正在更新到 OpenSAML v3.欢迎您尝试看看这对您有何帮助.

Note that the current official release of this extension builds against OpenSAML v2, and there is a develop branch that is in the process of updating to OpenSAML v3. You are welcome to try and see how that might work for you.

还有 pac4j 项目,它同样允许您将 SAML2 SP 支持构建到您的应用程序中并与身份提供者集成:

There is also the pac4j project which likewise, allows you build SAML2 SP support into your app and integrate with an identity provider:

http://www.pac4j.org/3.6.x/docs/clients/saml.html

这篇关于如何使用 saml 在我的 spring 应用程序中实现 sso?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 05:36