I applied your patch, and then moved these two lines directly above the check for samluserfrom in the session.
require_once(dirname(dirname(dirname(__FILE__))) . '/auth/lib.php'); $SESSION = Session::singleton();
If I did that, a successful login was redirected to /auth/saml (which then reports an error) rather than to the page I requested.
I applied your patch, and then moved these two lines directly above the check for samluserfrom in the session.
require_ once(dirname( dirname( dirname( __FILE_ _))) . '/auth/lib.php'); :singleton( );
$SESSION = Session:
If I did that, a successful login was redirected to /auth/saml (which then reports an error) rather than to the page I requested.