Bugzilla – Attachment 36676 Details for
Bug 12887
User logged out on refresh after CAS authentication
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 12887: User logged out on refresh after CAS authentication
PASSED-QA-Bug-12887-User-logged-out-on-refresh-aft.patch (text/plain), 1.49 KB, created by
Katrin Fischer
on 2015-03-06 10:56:01 UTC
(
hide
)
Description:
[PASSED QA] Bug 12887: User logged out on refresh after CAS authentication
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-03-06 10:56:01 UTC
Size:
1.49 KB
patch
obsolete
>From cdf32030ff48a22141d9a91b8826ca38defe8a4e Mon Sep 17 00:00:00 2001 >From: Matthias Meusburger <matthias.meusburger@biblibre.com> >Date: Wed, 4 Mar 2015 16:18:23 +0100 >Subject: [PATCH] [PASSED QA] Bug 12887: User logged out on refresh after CAS > authentication > >If the user is already logged-in, do not trigger CAS authentication >even if there is a ticket in the parameters. > >1) Authenticate to the OPAC through CAS. >2) Once redirected to your account, hit F5 or the refresh button of your browser. >3) You're logged out. > >Signed-off-by: Koha Team Lyon 3 <koha@univ-lyon3.fr> >Signed-off-by: Luce Barbey <luce.barbey@cirad.fr> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >Added sign of lines according to bug. >Works as described, small change. >--- > C4/Auth.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 22f1e8e..b742422 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -770,7 +770,7 @@ sub checkauth { > $sessiontype = $session->param('sessiontype') || ''; > } > if ( ( $query->param('koha_login_context') && ( $q_userid ne $s_userid ) ) >- || ( $cas && $query->param('ticket') ) || ( $shib && $shib_login && !$logout ) ) { >+ || ( $cas && $query->param('ticket') && !C4::Context->userenv->{'id'} ) || ( $shib && $shib_login && !$logout ) ) { > > #if a user enters an id ne to the id in the current session, we need to log them in... > #first we need to clear the anonymous session... >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12887
:
36498
| 36676