简体   繁体   English

Java SAML2 SSO客户端

[英]Java SAML2 SSO client

I want to connect to a SAML2 SSO identity provider with java so that I can then connect to some web endpoints and make authenticated requests. 我想使用Java连接到SAML2 SSO身份提供程序,以便随后可以连接到某些Web端点并发出经过身份验证的请求。

I looked at the Java libraries at https://github.com/onelogin but they appear to be libraries for providing SAML authentication, as opposed to connecting to SAML as a client. 我在https://github.com/onelogin上查看了Java库,但它们似乎是用于提供SAML身份验证的库,而不是作为客户端连接到SAML。

Does anyone know of any Java libraries for this. 没有人知道任何Java库。 With examples would be great as I am a beginner with SAML2. 对于我是SAML2的初学者来说,举几个例子会很棒。

From what I can understand, The OneLogin lib should do what you want. 据我了解,OneLogin库应该执行您想要的操作。 It will have your Java application act as a Service Provider and make authentication requests. 它将使您的Java应用程序充当服务提供者并发出身份验证请求。

Spring SAML is another alternative and Lastpass has yet another alternative Spring SAML是另一种选择, Lastpass具有另一种选择

You could also do SAML on a more low level using OpenSAML, but for a simple use-case the libs above will do the trick. 您也可以使用OpenSAML在较低级别上执行SAML,但是对于一个简单的用例,上面的libs可以解决问题。

To get a feel for SAML I can hint for my book, A Guide to OpenSAML . 为了对SAML 有所了解 ,我可以为我的书《 OpenSAML指南》提供一些建议 It explains SAML and how to do user authentication using OpenSAML. 它说明了SAML以及如何使用OpenSAML进行用户身份验证。 Again I recommend the libs above, but the book can be good to get a understanding of SAML. 再次,我推荐上面的库,但是这本书可以很好地理解SAML。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM