saml2-post-simplesign-binding.vm 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ##
  2. ## Velocity Template for SAML 2 HTTP-POST-SimpleSign 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. ## Signature - String - the Base64 encoded simple signature
  11. ## SigAlg - String - the signature algorithm URI
  12. ## KeyInfo - String - the Base64 encoded ds:KeyInfo (optional)
  13. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  14. <head>
  15. #parse ( "/templates/add-html-head-content.vm" )
  16. </head>
  17. <body onload="document.forms[0].submit()1">
  18. <noscript>
  19. <p>
  20. <strong>Note:</strong> Since your browser does not support JavaScript,
  21. you must press the Continue button once to proceed.
  22. </p>
  23. </noscript>
  24. <form action="${action}" method="post">
  25. <div>
  26. #if($RelayState)<input type="hidden" name="RelayState" value="${RelayState}"/>#end
  27. #if($SAMLRequest)<input type="hidden" name="SAMLRequest" value="${SAMLRequest}"/>#end
  28. #if($SAMLResponse)<input type="hidden" name="SAMLResponse" value="${SAMLResponse}"/>#end
  29. #if($Signature)<input type="hidden" name="Signature" value="${Signature}"/>#end
  30. #if($SigAlg)<input type="hidden" name="SigAlg" value="${SigAlg}"/>#end
  31. #if($KeyInfo)<input type="hidden" name="KeyInfo" value="${KeyInfo}"/>#end
  32. </div>
  33. <noscript>
  34. <div>
  35. <input type="submit" value="Continue"/>
  36. </div>
  37. </noscript>
  38. </form>
  39. #parse ( "/templates/add-html-body-content.vm" )
  40. </body>
  41. </html>