Main Koha release repository https://koha-community.org
Find a file
Fridolyn SOMERS c8a18f5eef Bug 11219: make CAS authentication work with URL parameters
Bug 10029 tries to fix the use of URL parameters in CAS authentication.
But is does not work.
The full URL must be used in all methods of C4::Auth_with_cas.
Also, in checkpw_cas(), the 'ticket' parameter must be removed to find
the original URL.

This patch removes the 'ticket' parameter from query before calling
checkpw_cas() since the ticket is passed as method arguemnt.
In C4::Auth_with_cas, many methods use the same code to get the CAS
handler and the service URI. This patch adds a private method
_get_cas_and_service() to do the job.

Test plan:
- Enable CAS
- Go to opac without been logged-in
- Try to place hold on a record
=> You get to /cgi-bin/koha/opac-reserve.pl?biblionumber=XXX showing
   authentication page
=> Check that CAS link contains query param "biblionumber"
- Click on CAS link and log in
=> Check you return well logged-in to reserve page with biblionumber
   param
- Check CAS loggout
- Check Proxy CAS auth

Signed-off-by: Koha team AMU <koha.aixmarseille@gmail.com>

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests in t, xt, and t/db_dependent/Auth.t.
Also passes QA script.

As I have no working CAS server, I focused on regression testing:
Activated Persona and casAuthentication.
- Verified normal login against database still works.
- Verified Persona login works.
  Note: With Persona you are always forwarded to the patron
  account - so you have to search for the record again before
  you can place a hold.
- Verified that the CAS URL contains the biblionumber when
  logging in while placing a hold.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Retested 2014-04-12

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-05-05 05:15:11 +00:00
acqui Bug 766: (follow-up) point acqui/ajax-getauthvaluedropbox.pl at the new location of GetAuthvalueDropbox 2014-05-04 23:11:31 +00:00
admin Bug 6739: make it possible to block expired patrons from OPAC actions 2014-05-05 01:49:05 +00:00
authorities Bug 10862: Add search history to the intranet interface 2014-05-05 03:06:33 +00:00
basket
C4 Bug 11219: make CAS authentication work with URL parameters 2014-05-05 05:15:11 +00:00
catalogue Bug 11848: Move language detection function in C4::Languages 2014-05-05 04:29:34 +00:00
cataloguing
circ Bug 8231: display warning at check in if borrower is restricted 2014-05-05 00:41:32 +00:00
course_reserves
debian
docs
errors
etc Bug 10729: Add phrases configuration for ICU 2014-05-05 04:10:57 +00:00
install_misc
installer Bug 11309: avoid creating duplicate numbering patterns during upgrade to 3.14.x 2014-05-05 03:38:44 +00:00
Koha Bug 11848: (follow-up) update license statment 2014-05-05 04:51:42 +00:00
koha-tmpl Bug 12046: Authentication using CAS - bootstrap 2014-05-05 05:11:32 +00:00
labels
members Bug 766: remove disused routine buildCGISort 2014-05-04 23:03:24 +00:00
misc Bug 11848: Make Koha::I18N easier to use 2014-05-05 04:30:02 +00:00
offline_circ Bug 10240: (follow-up) don't display patrons as lost or gone-no-address incorrectly 2013-10-11 01:57:05 +00:00
opac Bug 11848: Move language detection function in C4::Languages 2014-05-05 04:29:34 +00:00
OpenILS Bug 9239 QA follow-up: remove stray debug code 2013-03-16 21:32:34 -04:00
patron_lists
patroncards
plugins
reports
reserve
reviews
rotating_collections
selenium
serials Bug 11263: Use all languages instead of just the translated ones 2014-05-05 05:01:36 +00:00
services
skel
sms
suggestion
svc
t Bug 11848: Fix C4::Context::interface, add POD and UT 2014-05-05 04:32:31 +00:00
tags
test
tmp/modified_authorities
tools
virtualshelves
xt
.htaccess
.mailmap
about.pl
changelanguage.pl
edithelp.pl
fix-perl-path.PL
help.pl
INSTALL
install-CPAN.pl
INSTALL.debian
INSTALL.fedora7
INSTALL.opensuse
INSTALL.ubuntu
koha_perl_deps.pl
kohaversion.pl Bug 10862: DBrev 3.15.00.047 2014-05-05 03:08:58 +00:00
LICENSE
mainpage.pl
Makefile.PL Bug 10729: Add phrases configuration for ICU 2014-05-05 04:10:57 +00:00
MANIFEST.SKIP
README Bug 9440 - update Koha's LICENSE file from GPL2 to GPL3 2013-02-12 08:52:10 -05:00
README.robots
rewrite-config.PL Bug 10729: Add phrases configuration for ICU 2014-05-05 04:10:57 +00:00

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 3 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/