IdP-initiated login not working with Multi SSO. The user is redirected to login page. SP initiated authentication works properly.

Steps to Reproduce

No steps to reproduce available.


Open the MultiSSO installation exit and add the following code:

// return the IdP record based on request SAMLResponse
    getIdPRecord: function(req) {
        if (typeof SAML2_update1.getSAMLObjectFromRequest != 'function') {
            gs.logError("Method getSAMLObjectFromRequest not available in SAML2_update1.");
            return null;
        var samlResponseObject = SAML2_update1.getSAMLObjectFromRequest(req);
        var issuer = samlResponseObject.getIssuer().getValue();
        SSO_Helper.debug("IdP issuer found based on response: " + issuer);
        var gr = new GlideRecord("saml2_update1_properties");
        gr.addQuery("idp", issuer);
        if(gr.next()) {
            // always choose the first
            GlideController.putGlobal("SAMLResponseObject", samlResponseObject);
            return gr;
        } else {
            var noIdPFound = "Unable to find IdP record based on the response.";
            SNC.SSOUtils.writeToLogStream(0, noIdPFound);
            return null;

Related Problem: PRB621377

Seen In

Eureka Patch 10
Eureka Patch 2
Eureka Patch 3 Hot Fix 1
Eureka Patch 4 Hot Fix 1
Eureka Patch 5
Eureka Patch 6
Eureka Patch 7 Hot Fix 1
Eureka Patch 8
Fuji Patch 1
Fuji Patch 2 Hot Fix 1

Fixed In

Fuji Patch 2

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-05-23 10:47:03