how to implement sso in my spring application usin

2019-08-25 05:17发布

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.

Thanks in advance.

1条回答
成全新的幸福
2楼-- · 2019-08-25 05:38

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

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.

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

查看更多
登录 后发表回答