DocSpace-client/common/ASC.SsoAuth/views/actions.handlebars

23 lines
768 B
Handlebars
Raw Normal View History

2021-05-31 08:35:42 +00:00
<!--
actions.handlebars
This file provides a template for POST-binding actions.
In order to make it more flexible, there are serveral parameters you can set.
entityEndpoint: either service or identity provider
actionType: declares the type of actions (SAMLRequest/SAMLResponse)
actionValue: value for action (value should be base64 encoded before subsitution)
-->
<form id="saml-form" method="post" action="{{entityEndpoint}}" autocomplete="off">
<input type="hidden" name="{{type}}" value="{{context}}" />
{{#if relayState}}
<input type="hidden" name="RelayState" value="{{relayState}}" />
{{/if}}
</form>
<script type="text/javascript">
// Automatic form submission
(function () {
document.forms[0].submit();
})();
</script>