Customizing IDP's auto submit HTML form

Amitp amit.p at imfinity.com
Fri Feb 1 07:15:20 EST 2013


Hi all,

I've have a requirement to modify the auto submit HTML form of IDP that
sends SAML assertion to SP. Because our of some weird requirement from
client we had to run the flow in a html IFRAME. But after successful login
we have to break out of iframe. If I can modify the HTML of IDP's auto
submit form I can achieve this using Javascript.

But I spent some time looking into the code of IDP to find out where IDP is
creating this HTML. But no luck so far. 

Can plz anyone help me with any pointer where the HTML is created in the
code.

IDP version:  2.1.5

Thanks in advance.


Sample of the HTML I'm want to modify:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <body onload="document.forms[0].submit()">
        <noscript>
            <p><strong>Note:</strong> Since your browser does not support
JavaScript,
                you must press the Continue button once to proceed.
            </p>
        </noscript>
        <form action="https://mw.elc.edu.sa/jusur/Shibboleth.sso/SAML2/POST"
method="post">
            <div>
                <input type=&quot;hidden&quot; name=&quot;RelayState&quot;
value=&quot;&lt;COKKIE-VALUE>"/>                              
                <input type=&quot;hidden&quot; name=&quot;SAMLResponse&quot;
value=&quot;&lt;SAML>"/>                
            </div>
            <noscript>
                <div>
                    <input type="submit" value="Continue"/>
                </div>
            </noscript>
        </form>
    </body>
</html> 



--
View this message in context: http://shibboleth.1660669.n2.nabble.com/Customizing-IDP-s-auto-submit-HTML-form-tp7584394.html
Sent from the Shibboleth - Users mailing list archive at Nabble.com.


More information about the users mailing list