Skip to content

Latest commit

 

History

History
 
 

opensaml-http-post

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Demo code on HTTP POST in OpenSAML 4

This code shows a how to use the HTTPPostEncoder and HTTPPostDecoder in OpenSMAL 4 to send a receive messages using the HTTP POST binding.

The code is explained with more detail and backgound on this blog post

The demo sets up two servlets acting as sender and reciever of the a message.

The code shows:

  • All dependecied needed
  • Initializing OpenSAML
  • Sending and receiving messages using OpenSAML 4

Runing the code

Clone this repo, navigate to the folder for this sample and run:

mvn tomcat:run

Then open a browser and navigate to http://localhost:8080/opensaml-http-post/postPage All SAML messages used during the communication are logged to the console.