n8n
Version:
n8n Workflow Automation Tool
17 lines • 638 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInitSSOFormView = getInitSSOFormView;
function getInitSSOFormView(context) {
return `
<form id="saml-form" method="post" action="${context.entityEndpoint}" autocomplete="off">
<input type="hidden" name="${context.type}" value="${context.context}" />
${context.relayState ? '<input type="hidden" name="RelayState" value="{{relayState}}" />' : ''}
</form>
<script type="text/javascript">
// Automatic form submission
(function(){
document.forms[0].submit();
})();
</script>`;
}
//# sourceMappingURL=init-sso-post.js.map
;