LP#1996908: allow OpenILS::WWW::Proxy::Authen to check eg.auth.token
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 17 Nov 2022 15:09:39 +0000 (10:09 -0500)
committerMike Rylander <mrylander@gmail.com>
Thu, 1 Dec 2022 19:37:11 +0000 (14:37 -0500)
commit9ce1ce8bf9d370616d0ff82a549c97f7ec46224a
treee432d7b0eeefb29f7950f74012cbcfecaa2422ea
parente7acf4a00c3948fac5f270926c3838459d57434e
LP#1996908: allow OpenILS::WWW::Proxy::Authen to check eg.auth.token

This patch allows the authentication handler to accept the
'eg.auth.token' cookie coming from the staff client if a 'ses' parameter
or 'ses' cookie has not been set. This allows resources gated by
this handler to be accessed by a staff member who has logged
into the staff client without requiring an additional login.

To test
-------
[1] Create a report and note the URL of one of its
    outputs.
[2] In a completely fresh browser session, log into the
    staff client, then directly load the reporter output.
    You will be prompted to log in again because the 'ses'
    cookie was not set.
[3] Apply the patch and repeat step 2. This time, the reporter
    output should be directly retrieved.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/Proxy/Authen.pm