-
Bug
-
Resolution: Fixed
-
Minor
-
2.2, 2.3, 2.3.1
-
MOODLE_22_STABLE, MOODLE_23_STABLE
Hello,
in the function prelogout_hook of the file auth/cas/auth.php (line 150 for mdl 2.3)
This line is used to redirect the logged out user back to moodle :
phpCAS::logoutWithURL($backurl);
the url called will be for example :
http://auth.myschool.net/cas/logout?url=http%3A%2F%2Fmoodle.myschool.net
the only problem is :
the "url" argument is not used by default and only usable with a hack on the cas server.
Since a few versions, the redirect url is interpreted by the argument "service"
the method in phpCas library is phpCAS::logoutWithRedirectService($backurl);
I corrected the script and now the url argument which was ignored now redirects to the moodle after logout :
http://auth.myschool.net/cas/logout?service=http%3A%2F%2Fmoodle.myschool.net
So it's not a real BUG but an evolution following the cas protocol for single sign out.
- will be (partly) resolved by
-
MDL-40805 user_logout event is not triggered when using CAS authentication with CAS logout option set to yes
-
- Closed
-