From c251f7524081e428b24620d2755a210347da2052 Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Mon, 14 Oct 2013 11:24:29 +0200 Subject: [PATCH] Bug 11048: Fix logout redirection for CAS authentication The logout redirection function after a CAS authentication was misused. This patch fixes it, and allows the CAS server to redirect the user back to the opac after logout. Signed-off-by: Chris Cormack From the Authen::Cas::Client documentation logout_url [%args] "logout_url()" returns the CAS server's logout URL which can be used to redirect users to end authenticated sessions. %args may contain the following optional parameter: * url => $url If present, the CAS server will present the user with a link to the given URL once the user has logged out. Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Change only affects CAS authentication and is correct according to the module documentation. Signed-off-by: Galen Charlton --- C4/Auth_with_cas.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Auth_with_cas.pm b/C4/Auth_with_cas.pm index a42a71cbb1..69e510f415 100644 --- a/C4/Auth_with_cas.pm +++ b/C4/Auth_with_cas.pm @@ -67,6 +67,7 @@ sub logout_cas { my ($query) = @_; my ( $cas, $uri ) = _get_cas_and_service($query); print $query->redirect( $cas->logout_url($uri)); + print $query->redirect( $cas->logout_url(url => $uri)); } # Login to CAS -- 2.20.1