You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the should_login_redirect() function will sometimes initiate a redirect to saml when multiple auth methods are in use, so it should allow the normal process to occur.
Possible patch that fixes it (I'll review this further and look at a PR.)
diff --git a/auth/saml2/classes/auth.php b/auth/saml2/classes/auth.php
index 61aaedd3eff..ccb46466448 100644
--- a/auth/saml2/classes/auth.php
+++ b/auth/saml2/classes/auth.php
@@ -471,6 +471,14 @@ class auth extends \auth_plugin_base {
$saml = 0;
}
• // If ?saml=on even when duallogin is on, go directly to IdP.
• if ($saml == 1) {
• $this->log(__FUNCTION__ . ' redirecting due to query param ?saml=on');
• return true;
• }
+
• return false;
+
// Never redirect on POST.
if (isset($_SERVER['REQUEST_METHOD']) && ($_SERVER['REQUEST_METHOD'] == 'POST')) {
$this->log(__FUNCTION__ . ' skipping due to method=post');
@@ -519,12 +527,6 @@ class auth extends \auth_plugin_base {
return false;
}
• // If ?saml=on even when duallogin is on, go directly to IdP.
• if ($saml == 1) {
• $this->log(__FUNCTION__ . ' redirecting due to query param ?saml=on');
• return true;
• }
-
// Check whether we've skipped saml already.
// This is here because loginpage_hook is called again during form
// submission (all of login.php is processed) and ?saml=off is not
The text was updated successfully, but these errors were encountered:
the should_login_redirect() function will sometimes initiate a redirect to saml when multiple auth methods are in use, so it should allow the normal process to occur.
Possible patch that fixes it (I'll review this further and look at a PR.)
The text was updated successfully, but these errors were encountered: