-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.6, 2.5.2
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_28_STABLE, MOODLE_29_STABLE
-
MDL-41598-master -
MDL-37020 introduced a validation check for WAYFLess URLs in Shibboleth. It's based on the assumption that in a Shib or Shib/CAS environment target is only passed back to Moodle when it's explicitly set per MDL-35153. This isn't the case: target is always set, and if the user doesn't set a deep link URL it's set to the authentication provider. This didn't show up in testing because the authentication provider is an HTTPS link, which PARAM_LOCALURL filtered out (which may be a bug, but that's for another issue). If you're running a Shibbolized Moodle instance you're going to see similar behavior to MDL-37020: deep links which don't include the IDP are ignored and you're redirected to the main page, because the wantsurl session variable isn't checked.
I think the solution is to check if $SESSION->wantsurl is set and if so always use it in preference to target.
- is a regression caused by
-
MDL-35153 Allow WAYFless URLs with Shibboleth authentication
-
- Closed
-