saml-post-form.ftl 1.0 KB

12345678910111213141516171819202122232425
  1. <#import "template.ftl" as layout>
  2. <@layout.registrationLayout; section>
  3. <#if section = "header">
  4. ${msg("saml.post-form.title")}
  5. <#elseif section = "form">
  6. <script>window.onload = function() {document.forms[0].submit()};</script>
  7. <p>${msg("saml.post-form.message")}</p>
  8. <form name="saml-post-binding" method="post" action="${samlPost.url}">
  9. <#if samlPost.SAMLRequest??>
  10. <input type="hidden" name="SAMLRequest" value="${samlPost.SAMLRequest}"/>
  11. </#if>
  12. <#if samlPost.SAMLResponse??>
  13. <input type="hidden" name="SAMLResponse" value="${samlPost.SAMLResponse}"/>
  14. </#if>
  15. <#if samlPost.relayState??>
  16. <input type="hidden" name="RelayState" value="${samlPost.relayState}"/>
  17. </#if>
  18. <noscript>
  19. <p>${msg("saml.post-form.js-disabled")}</p>
  20. <input type="submit" value="${msg("doContinue")}"/>
  21. </noscript>
  22. </form>
  23. </#if>
  24. </@layout.registrationLayout>