Al Grant
Al Grant

Reputation: 2354

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.

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.

Does anyone know of any Java libraries for this. With examples would be great as I am a beginner with SAML2.

Upvotes: 2

Views: 6952

Answers (1)

Stefan Rasmusson
Stefan Rasmusson

Reputation: 5595

From what I can understand, The OneLogin lib should do what you want. It will have your Java application act as a Service Provider and make authentication requests.

Spring SAML is another alternative and Lastpass has yet another alternative

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.

To get a feel for SAML I can hint for my book, A Guide to OpenSAML. It explains SAML and how to do user authentication using OpenSAML. Again I recommend the libs above, but the book can be good to get a understanding of SAML.

Upvotes: 1

Related Questions