I'm looking for guidance how to resolve the error below processing an
IdP logout request using this endpoint:
https://<my_simplesamlphp_host>/simplesaml/saml2/idp/SingleLogoutService.php
SimpleSAML\Error\Error: UNHANDLEDEXCEPTION
Backtrace:
3 public/_include.php:31 (SimpleSAML_exception_handler)
2 vendor/symfony/error-handler/ErrorHandler.php:607 (Symfony\Component\ErrorHandler\ErrorHandler::handleException)
1 vendor/symfony/error-handler/ErrorHandler.php:697 (Symfony\Component\ErrorHandler\ErrorHandler::handleFatalError)
0 [builtin] (N/A)
Caused by: Symfony\Component\ErrorHandler\Error\FatalError: Compile Error: require():
Failed opening required '/tmp/simplesaml/cache/core/ContainerGzRemJI/getLogoutService.php'
(include_path='.:/usr/share/pear:/usr/share/php')
Backtrace:
0 /tmp/simplesaml/cache/core/ContainerGzRemJI/SimpleSAML_KernelProdContainer.php:98 (N/A)
The entire login process between the SP to simplesamlphp works successfully using
this endpoint:
https://<my_simplesamlphp_host>/simplesaml/saml2/idp/SSOService.php
Although the UNHANDLEDEXCEPTION message is displayed, it does appear that
the user's simplesamlphp session is successfully terminated and the user is logged out.
This simplesamlphp doc link references IdP-initiated logout and provides an example:
https://simplesamlphp.org/docs/stable/simplesamlphp-idp-more.html#idp-initiated-logoutI am able to use the simplesamlphp admin interface to test my configured
authentication source and successfully login and logout. So I think the issue
might be related to something that I have not configured or mis-configured
in simplesamlphp.
Here is the SP host entry configured in 'saml20-sp-remote.php':
$metadata['<sp_host>'] = array(
'AssertionConsumerService' => 'https://<sp_host>/saml/acs',
'SingleLogoutService' => 'https://<sp_host>/saml/logout',
'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent',
'saml20.sign.response' => TRUE,
'saml20.sign.assertion' => TRUE,
'validate.authnrequest' => FALSE,
'simplesaml.nameidattribute' => 'email',
'certificate' => 'saml.crt',
);
This option has been spcified in 'saml20-idp-hosted.php':
'validate.logout' => FALSE,
----------
I have also been following the conversation for "v2.0.4 integrated with Google Workspace"
Thus, I tried updating our SP host to use this link for logout:
https://<my_simplesamlphp_host>/simplesaml/saml2/idp/initSLO.php?RelayState=/simplesaml/saml2/idp/SingleLogoutService.php
However, the same error appears to still be encountered:
SimpleSAML\Error\Error: UNHANDLEDEXCEPTION
Backtrace:
3 public/_include.php:31 (SimpleSAML_exception_handler)
2 vendor/symfony/error-handler/ErrorHandler.php:607 (Symfony\Component\ErrorHandler\ErrorHandler::handleException)
1 vendor/symfony/error-handler/ErrorHandler.php:697 (Symfony\Component\ErrorHandler\ErrorHandler::handleFatalError)
0 [builtin] (N/A)
Caused by: Symfony\Component\ErrorHandler\Error\FatalError: Compile Error: require(): Failed opening required '/tmp/simplesaml/cache/core/ContainerGzRemJI/getLogoutService.php' (include_path='.:/usr/share/pear:/usr/share/php')
Backtrace:
0 /tmp/simplesaml/cache/core/ContainerGzRemJI/SimpleSAML_KernelProdContainer.php:98 (N/A)