otatarintseva / moodle-auth_samlidp

0 stars 5 forks source link

The class 'SimpleSAML\Module\moodle\Auth\Source\External' isn't a subclass of '\SimpleSAML\Auth\Source'. #6

Open dseixas opened 1 year ago

dseixas commented 1 year ago

I'm trying to install moodle-auth_samildp with the following versions:

simplesaml-2.0.5 php 8.0.30 Moodle 4.2.2+ (Build: 20230818)

I'm getting an error, I'm guessing, that has to do with namespaces and such.... Can you help me:

SimpleSAML\Error\Error: UNHANDLEDEXCEPTION Backtrace: 1 public/_include.php:28 (SimpleSAML_exception_handler) 0 [builtin] (N/A) Caused by: Exception: Could not resolve 'moodle:External': The class 'SimpleSAML\Module\moodle\Auth\Source\External' isn't a subclass of '\SimpleSAML\Auth\Source'. Backtrace: 6 src/SimpleSAML/Module.php:459 (SimpleSAML\Module::resolveClass) 5 src/SimpleSAML/Auth/Source.php:315 (SimpleSAML\Auth\Source::parseAuthSource) 4 src/SimpleSAML/Auth/Source.php:358 (SimpleSAML\Auth\Source::getById) 3 src/SimpleSAML/IdP.php:108 (SimpleSAML\IdP::__construct) 2 src/SimpleSAML/IdP.php:140 (SimpleSAML\IdP::getById) 1 modules/saml/src/Controller/WebBrowserSingleSignOn.php:133 (SimpleSAML\Module\saml\Controller\WebBrowserSingleSignOn::singleSignOnService) 0 public/saml2/idp/SSOService.php:18 (N/A)

prosserg commented 9 months ago

I have the same error but with different versions ie php 7.4 moodle 4.1.6 simplesamlphp 2.0.8 samlidp 2018061305

Is the only solution to revert to the outdated simplesamlphp 1.19 ? We have 1.19 working with

php 7.4 moodle 4.1.4 simplesaml 1.19 samlidp 2018061305