Skip to content

Instantly share code, notes, and snippets.

@paulsena
paulsena / SAML 2.0 Update 1 Modified AuthN POST.js
Created April 8, 2014 13:25
Modified version of SSO SAML 2.0 Update 1 Script Include. Adds support for HTTP POST on AuthNRequests. Out of box ServiceNow just supports HTTP Redirection when sending Auth Requests from SN to the Identity Provider. Added a new function called generateAuthnRequestForm. Call this function from the Installation Exist Script instead of generateAut…
gs.include("PrototypeServer");
var SAML2Error = Class.create();
SAML2Error.prototype = Object.extend(new Error(), {
initialize : function(message) {
this.name = "SAML2Error";
this.message = message;
}
});
var IntegrationHelper = Class.create();
IntegrationHelper.prototype = {
initialize: function() {
},
/*
* getEccResponse
*
* This method will take the sysID of an output record on the ECC queue