Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 884 Bytes

File metadata and controls

20 lines (15 loc) · 884 Bytes

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.