From 97f6d5c727e25c96879a44181001b4d361146eb2 Mon Sep 17 00:00:00 2001 From: Pedro Lobo Date: Tue, 19 Nov 2019 12:11:03 +0000 Subject: [PATCH] Removed the user verification of the user type, $identity is always empty, it fails to proceed (If you want to have multiple authentication type, you must find another way) --- ShibbolethAuth.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ShibbolethAuth.php b/ShibbolethAuth.php index d26369d..df82017 100644 --- a/ShibbolethAuth.php +++ b/ShibbolethAuth.php @@ -60,12 +60,15 @@ public function __construct(\LimeSurvey\PluginManager\PluginManager $manager, $i } public function beforeLogin() { - // Do nothing if this user is not ShibbolethAuth type + // Doesn't return any value to $identity, it fails, always + // Do nothing if this user is not ShibbolethAuth type + /* $identity = $this->getEvent()->get('identity'); if ($identity->plugin != 'ShibbolethAuth') { return; } + */ $authuserid = $this->get('authuserid'); $authusergivenName = $this->get('authusergivenName');