Bug 11048: Fix logout redirection for CAS authentication
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Mon, 14 Oct 2013 09:24:29 +0000 (11:24 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 05:20:26 +0000 (05:20 +0000)
commitc251f7524081e428b24620d2755a210347da2052
tree3accd524857e950ef431f1af9eae495e78659663
parentb57d98517c5a9572a54412f7f4e5d872acfa85c3
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 <chrisc@catalyst.net.nz>

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 <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Change only affects CAS authentication and is correct
according to the module documentation.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Auth_with_cas.pm