simplesamlphp/simplesamlphp-module-smartattributes

SmartID filter not working on SSP 2.0

Closed this issue · 3 comments

nwpr commented

The SmartID filter throws an exception on SSP 2.0 running on PHP 8.1.
Since the actual code should be alright, my guess is that it's caused by compatibility issues between PHP 8.1 and the used php-psr version.

That's the trace:

SimpleSAML\Error\Error: UNHANDLEDEXCEPTION
Backtrace:
3 public/_include.php:31 (SimpleSAML_exception_handler)
2 /vendor/symfony/error-handler/ErrorHandler.php:538 (Symfony\Component\ErrorHandler\ErrorHandler::handleException)
1 /vendor/symfony/error-handler/ErrorHandler.php:628 (Symfony\Component\ErrorHandler\ErrorHandler::handleFatalError)
0 [builtin] (N/A)
Caused by: Symfony\Component\ErrorHandler\Error\FatalError: Compile Error: Declaration of SimpleSAML\Module\smartattributes\Auth\Process\SmartID::process(&$request) must be compatible with SimpleSAML\Auth\ProcessingFilter::process(array &$state): void
Backtrace:
0 modules/smartattributes/lib/Auth/Process/SmartID.php:127 (N/A)

Looking at the messge it seems you may have an old version of the module installed, not v1.x, could this be the case?

FWIW I've just tagged v1.0.2 to be completely up to date with all changes.

nwpr commented

Thank you! I've used v1.0.1 before.
V1.0.2 does work now indeed!