<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Le 11/03/2015 23:24, Cantor, Scott a
      écrit :<br>
    </div>
    <blockquote
cite="mid:9846A6064BD102419D06814DD0D78DE10F93BF@CIO-TNC-D2MBX02.osuad.osu.edu"
      type="cite">
      <blockquote type="cite">
        <pre wrap="">after going through the shibboleth login process, I loose the browsing
context query string in the final target
exemple in a web biblio application, in the process of placing a hold on a book
selected while not yet connected:
</pre>
      </blockquote>
      <pre wrap="">
Using requireSession preserves the query string, that I'm fairly certain of. So I would imagine you have something else in the mix that's at fault here that's doing a manual redirect to /Login and dropping it. Realize that a standard request intercept in the SP never redirects to /Login. if that happens, you're doing it (in the broadest sense of "you"), not the SP.</pre>
    </blockquote>
    Yes , I don't force requireSession (it is set to 0) , I want my
    users to browse the site freely without beeing connected:<br>
    <br>
    &lt;LocationMatch /cgi-bin/koha/.*&gt;<br>
     AuthType shibboleth<br>
     ShibRequestSetting <b>requireSession 0</b><br>
      require shibboleth<br>
    &lt;/LocationMatch&gt;<br>
    <br>
    I want them to connect only when necessary (placing a hold on a book
    in this case) , so I use "lazy session" as I understand it .<br>
    when they click on
    .../cgi-bin/koha/opac-reserve.pl?biblionumber=74745 it matchs the
    above LocationMatch /cgi-bin/koha/.* and the "require shibboleth"
    through shibd starts &lt;SessionInitiator type="Chaining"
    Location="/Login" id="Login" &gt;<br>
     as I understand the flow .<br>
    Now I am presented with the intermediary page :<br>
    <br>
    <pre id="line1"><span>&lt;<span class="start-tag">p</span>&gt;</span><span>If you have a shibboleth account, 
<span id="line1483"></span>please </span><span>&lt;<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a href="view-source:https://mediatheques.mines-telecom.fr/Shibboleth.sso/Login?target=https://mediatheques.mines-telecom.fr/cgi-bin/koha/opac-reserve.pl" class="attribute-value">https://site.domain.fr/Shibboleth.sso/Login?target=https://server.domain.fr/cgi-bin/koha/opac-reserve.pl</a>"&gt;</span><span>click here to login</span><span>&lt;/<span class="end-tag">a</span>&gt;</span><span>.</span><span>&lt;/<span class="end-tag">p</span>&gt;</span><span>
<span id="line1484"></span>
<span id="line1485"></span></span><span>&lt;<span class="start-tag">h4</span>&gt;</span><span>Local Login</span><span>&lt;/<span class="end-tag">h4</span>&gt;</span><span>
<span id="line1486"></span></span><span>&lt;<span class="start-tag">p</span>&gt;</span><span>If you do not have a shibboleth account, but a local account, you can still log in : </span><span>&lt;/<span class="end-tag">p</span>&gt;</span><span></span></pre>
    <br>
    where the hardcoded link indeed removed the <b>?biblionumber=74745</b>
    . <br>
    It did took the referer <span><a
href="view-source:https://mediatheques.mines-telecom.fr/Shibboleth.sso/Login?target=https://mediatheques.mines-telecom.fr/cgi-bin/koha/opac-reserve.pl"
        class="attribute-value">target=https://server.domain.fr/cgi-bin/koha/opac-reserve.pl</a></span>
    but not the following query string,<br>
    is there a way to preserve it ? is it available in a http
    environnement variable ? elsewhere ?<br>
    <br>
    thanks for you help .<br>
    <br>
  </body>
</html>