saml2-post-binding.vm 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ##
  2. ## Velocity Template for SAML 2 HTTP-POST binding
  3. ##
  4. ## Velocity context may contain the following properties
  5. ## action - String - the action URL for the form
  6. ## binding - String - the SAML binding type in use
  7. ## RelayState - String - the relay state for the message
  8. ## SAMLRequest - String - the Base64 encoded SAML Request
  9. ## SAMLResponse - String - the Base64 encoded SAML Response
  10. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  11. <head>
  12. #parse ( "/templates/add-html-head-content.vm" )
  13. </head>
  14. <body onload="document.forms[0].submit()">
  15. <noscript>
  16. <p>
  17. <strong>Note:</strong> Since your browser does not support JavaScript,
  18. you must press the Continue button once to proceed.
  19. </p>
  20. </noscript>
  21. <form action="${action}" method="post">
  22. <div>
  23. #if($RelayState)<input type="hidden" name="RelayState" value="${RelayState}"/>#end
  24. #if($SAMLRequest)<input type="hidden" name="SAMLRequest" value="${SAMLRequest}"/>#end
  25. #if($SAMLResponse)<input type="hidden" name="SAMLResponse" value="${SAMLResponse}"/>#end
  26. </div>
  27. <noscript>
  28. <div>
  29. <input type="submit" value="Continue"/>
  30. </div>
  31. </noscript>
  32. </form>
  33. #parse ( "/templates/add-html-body-content.vm" )
  34. </body>
  35. </html>