aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Noack <noack@data-quest.de>2025-01-06 13:54:00 +0000
committerArne Schröder <schroeder@data-quest.de>2025-01-22 12:11:47 +0000
commit256c03e4e2881e17948fd9902407385bfad4f49d (patch)
tree37ef33d75a75afebb5e37fdfee6f9150cf6bd4d6
parent806fc889a4708ad9012f2abb665d64d6e85be7f8 (diff)
repair Shibboleth login fixes #5045
Closes #5045 Merge request studip/studip!3810
-rw-r--r--lib/authentication/Manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/authentication/Manager.php b/lib/authentication/Manager.php
index d9c9f95..b25efad 100644
--- a/lib/authentication/Manager.php
+++ b/lib/authentication/Manager.php
@@ -55,7 +55,7 @@ class Manager
Metrics::increment('core.sso_login.attempted');
// then do login
$authplugin = StudipAuthAbstract::GetInstance($provider);
- if ($authplugin) {
+ if ($authplugin instanceof \StudipAuthSSO) {
$authplugin->authenticateUser('', '');
if ($authplugin->getUser()) {
$user = $authplugin->getStudipUser($authplugin->getUser());
@@ -71,8 +71,8 @@ class Manager
}
Metrics::increment('core.sso_login.succeeded');
- sess()->regenerateId(['auth', '_language', 'phpCAS', 'contrast']);
$this->setAuthenticatedUser($user);
+ sess()->regenerateId(['auth', '_language', 'phpCAS', 'contrast']);
}
}
}