title: PingFederate IdP-initiated Logout, redirect to TargetResource
body: <p>Ping Federate Logout From IdP flow as from the Ping Federate <a href="http://documentation.pingidentity.com/display/PHP/IdP+Single+Logout+%28SLO%29#IdPSingleLogout%28SLO%29-9000163">Documentation</a></p>
  
  <p>Sequence</p>
  
  <ol>
  <li><p>User initiates a single logout request. The request targets the
  PingFederate server’s /idp/startSLO.ping endpoint.</p></li>
  <li><p>PingFederate sends a logout request and receives responses from all
  SPs registered for the current SSO session.</p></li>
  <li><p>PingFederate redirects the request to the IdP Web application’s
  Logout Service, which identifies and removes the user’s session locally.</p></li>
  <li><p>The application Logout Service redirects back to PingFederate to
  display a logout-success page.</p></li>
  </ol>
  
  <p>But, I have a slight problem regarding the  <strong>application Logout Service</strong> , which needs to set at IdP adapter configuration. </p>
  
  <p>The problem is i have dynamic logout URL , due to which i can't use it in the <strong>Logout Service</strong>.</p>
  
  <p>Currently i am trying to initialize the IdP initiated SLO. For which i am passing <code>TargetResource</code> to redirect user to IdP after SLO success.</p>
  
  <pre><code>https://idp.pf.com:9031/idp/startSLO.ping?PartnerSpId=testSpId&amp;TargetResource=http%3A%2F%2Fdynamicsubhost.baseurl.com%3A8080%2Fweb%2Fmy-bank%2Flogout
  </code></pre>
  
  <p>Question : </p>
  
  <p>So how can i rig the PingFederate setting to skip the <code>Step 3</code> , so instead of redirecting to the <code>IdP Logout service</code> it redirects to <code>TargetResource</code>. </p>
  
  <p>What i have tried : </p>
  
  <p>I know it sounds cheesy , but actually i kept the IdP logout service to blank. But obviously it wasn't working.</p>
  
  <blockquote>
    <p><strong>P.S</strong> The awkward thing is when i was using same PF server for
    configuring both IdP and SP server it was working well. But when i
    switch to separate instance of PF server for hosting the PingFederate
    Server the consequence is showing up.</p>
  </blockquote>