<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 2 6 3 5 4 5 2 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Helvetica;
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:Helvetica">Add this to your <SSO> element:  outgoingBindings="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Helvetica">This assumes that the IdP metadata you have has an HTTP-POST SSO Service.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Helvetica"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">users <users-bounces@shibboleth.net> on behalf of uraikwar <umesh.raikwar@gmail.com><br>
<b>Reply-To: </b>Shib Users <users@shibboleth.net><br>
<b>Date: </b>Thursday, March 26, 2020 at 05:57<br>
<b>To: </b>"users@shibboleth.net" <users@shibboleth.net><br>
<b>Subject: </b>Shibboleth SP3 is not doing POST<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">We have an SP initiated SSO setup for our product which combines Shibboleth SP3 and PingFed IDP. Everything works fine. We are using Shibboleth v3.0.2. Now there is a change in requirement, we need to a show massage to User before redirecting
 to IPD login page and after successful authentication before redirecting to originating product URL. As per Shibboleth SP3 documentation at
<a href="https://wiki.shibboleth.net/confluence/display/SP3/ConfigurationFileSummary" target="_top">
https://wiki.shibboleth.net/confluence/display/SP3/ConfigurationFileSummary</a>. It seems that customizing
<b>bindingTemplate.html</b> and <b>postTemplate.html</b> can solve my problem. However, it needed to change SAML artifact binding to use
<b>POST</b> rather than a <b>redirect</b>. As per documentation found at <a href="https://wiki.shibboleth.net/confluence/display/SP3/SSO" target="_top">
https://wiki.shibboleth.net/confluence/display/SP3/SSO</a>, <b>postArtifact="true"</b> can change the behaviour. However, doing these changes in shibboleth2.xml, there is no change in behaviour. Still, SP is doing a redirect to IDP and bindingTemplate.html
 & postTemplate.html not coming in picture. This is my shibboleth2.xml- <o:p></o:p></p>
<pre><SPConfig xmlns="urn:mace:shibboleth:3.0:native:sp:config"<o:p></o:p></pre>
<pre>    xmlns:conf="urn:mace:shibboleth:3.0:native:sp:config"<o:p></o:p></pre>
<pre>        clockSkew="180"><o:p></o:p></pre>
<pre>    <OutOfProcess tranLogFormat="%u|%s|%IDP|%i|%ac|%t|%attr|%n|%b|%E|%S|%SS|%L|%UA|%a" /><o:p></o:p></pre>
<pre>    <ApplicationDefaults entityID="PLM-QA-TYPE"<o:p></o:p></pre>
<pre>        REMOTE_USER="uid eppn subject-id pairwise-id persistent-id"<o:p></o:p></pre>
<pre>        cipherSuites="DEFAULT:!EXP:!LOW:!aNULL:!eNULL:!DES:!IDEA:!SEED:!RC4:!3DES:!kRSA:!SSLv2:!SSLv3:!TLSv1:!TLSv1.1"><o:p></o:p></pre>
<pre>        <Sessions lifetime="28800" timeout="3600" relayState="ss:mem"<o:p></o:p></pre>
<pre>                  checkAddress="false" handlerSSL="false" cookieProps="http" postTemplate="postTemplate.html"><o:p></o:p></pre>
<pre>                       <SSO entityID="https://entityid.com" postArtifact="true" template="bindingTemplate.html"   <o:p></o:p></pre>
<pre>                 discoveryProtocol="SAMLDS" discoveryURL="https://ds.example.org/DS/WAYF" > <o:p></o:p></pre>
<pre>              SAML2<o:p></o:p></pre>
<pre>            </SSO> <o:p></o:p></pre>
<pre>            <Logout>SAML2 Local</Logout><o:p></o:p></pre>
<pre>            <LogoutInitiator type="Admin" Location="/Logout/Admin" acl="127.0.0.1 ::1" /><o:p></o:p></pre>
<pre>            <Handler type="MetadataGenerator" Location="/Metadata" signing="false"/><o:p></o:p></pre>
<pre>            <Handler type="Status" Location="/Status" acl="127.0.0.1 ::1"/><o:p></o:p></pre>
<pre>            <Handler type="Session" Location="/Session" showAttributeValues="false"/><o:p></o:p></pre>
<pre>            <Handler type="DiscoveryFeed" Location="/DiscoFeed"/><o:p></o:p></pre>
<pre>        </Sessions><o:p></o:p></pre>
<pre>        <Errors supportContact="root@localhost"<o:p></o:p></pre>
<pre>            helpLocation="/about.html"<o:p></o:p></pre>
<pre>            styleSheet="/shibboleth-sp/main.css"/><o:p></o:p></pre>
<pre>               <MetadataProvider type="XML" validate="true" path="idp-metadata.xml"/><o:p></o:p></pre>
<pre>        <AttributeExtractor type="XML" validate="true" reloadChanges="false" path="attribute-map.xml"/><o:p></o:p></pre>
<pre>        <AttributeFilter type="XML" validate="true" path="attribute-policy.xml"/><o:p></o:p></pre>
<pre>        <CredentialResolver type="File" use="signing"<o:p></o:p></pre>
<pre>            key="sp-signing-key.pem" certificate="sp-signing-cert.pem"/><o:p></o:p></pre>
<pre>        <CredentialResolver type="File" use="encryption"<o:p></o:p></pre>
<pre>            key="sp-encrypt-key.pem" certificate="sp-encrypt-cert.pem"/><o:p></o:p></pre>
<pre>    </ApplicationDefaults><o:p></o:p></pre>
<pre>    <SecurityPolicyProvider type="XML" validate="true" path="security-policy.xml"/><o:p></o:p></pre>
<pre>    <ProtocolProvider type="XML" validate="true" reloadChanges="false" path="protocols.xml"/><o:p></o:p></pre>
<pre></SPConfig><o:p></o:p></pre>
<p class="MsoNormal">Here, I added <b>postTemplate="postTemplate.html"</b> and <b>
postArtifact="true" template="bindingTemplate.html"</b> over existing configuration. Can someone help me to identify, what wrong I am doing? Thanks in advance.
<o:p></o:p></p>
<div class="MsoNormal">
<hr size="2" width="300" style="width:225.0pt" align="left">
</div>
<p class="MsoNormal">Sent from the <a href="https://shibboleth.1660669.n2.nabble.com/Shibboleth-Users-f1660767.html">
Shibboleth - Users mailing list archive</a> at Nabble.com.<br>
<br>
<o:p></o:p></p>
</div>
</body>
</html>