6 Replies Latest reply on Aug 27, 2012 10:26 AM by anil.saldhana

    Return URL

    snailwood

      I'm using form authentication to log in through an IDP in JBoss 7.1. I'm trying to figure out how to send a RelayState containing the target URL along with the request to the IDP, so that when users returns to my site (the SP), they will be redirected to their original request. Right now, I've modified the picketlink-idfed.xml to

       

      <PicketLinkSP xmlns="urn:picketlink:identity-federation:config:1.0" ServerEnvironment="tomcat">

           <IdentityURL>${idp.url::http://localhost:8080/idp/}?RelayState=token</IdentityURL>

            <ServiceURL>${sp.url::http://localhost:8080/SP/redirect}</ServiceURL>

      </PicketLinkSP>

       

      this was just to make sure that RelayState was getting sent through correctly. It stays in the request until it comes back to the SP, but I'm not sure how to assign the return URL to the parameter. Am I approaching this the wrong way? Is there a better way to handle return URL?