Skip to content

Latest commit

 

History

History

OpenSAML V2 example project

This is a simple example project used in the book A Guide to OpenSAML.

The project show how to implement SAML 2.0 Web browser SSO profile using OpenSAML V2 in Java.

⚠️ OpenSAML V2 is now deprecated and have been replaced by newer version A new book based on OpenSAML V3 is available as well as a new corresponding example project

The example project

The purpose of this project is to be an example and tutorial on how OpenSAML works and does not necessarily fulfill all best practises and security requirements. It can be a good place to start as a beginner when experimenting, but should not be used for production purposes.

This projekt demonstrate the following in OpenSAML

  • Including and bootstrapping the OpenSAML library
  • Sending a AuthnRequest using HTTP Redirect binding
  • Sending a Authentication Response using the HTTP Artifact Binding
  • Encrypting and decrypting Assertion
  • Reading credentials, signing and verifying messages

More resources on OpenSAML

On my blog, blog.samlsecurity.com, I provide a lot of guides, tutorials and examples on the use of OpenSAML and SAML.