I’m trying to connect a SP to an IDP, both using SimpleSAMLphp.
I did everything like the documentation says, when i go to the SP to try to login to the IDP (using the student:studentpass from the documentation) , it redirects me to the IDP and asks for credentials, once i put then and validate i get redirected back to the SP but i get the following error :
SimpleSAMLErrorError: UNHANDLEDEXCEPTION Backtrace: 1 www/_include.php:17 (SimpleSAML_exception_handler) 0 [builtin] (N/A) Caused by: Exception: Unable to validate Signature Backtrace: 7 vendor/simplesamlphp/saml2/src/SAML2/Utils.php:181 (SAML2Utils::validateSignature) 6 [builtin] (call_user_func) 5 vendor/simplesamlphp/saml2/src/SAML2/Message.php:264 (SAML2Message::validate) 4 modules/saml/lib/Message.php:228 (SimpleSAMLModulesamlMessage::checkSign) 3 modules/saml/lib/Message.php:627 (SimpleSAMLModulesamlMessage::processResponse) 2 modules/saml/www/sp/saml2-acs.php:141 (require) 1 lib/SimpleSAML/Module.php:260 (SimpleSAMLModule::process) 0 www/module.php:10 (N/A)
I tried updating the metadata for both of them, without success.
I don’t use the same version of SimpleSAMLphp, i use the last one for the IDP and 1.18 for the SP since it runs on php5.6.
I don’t see what i’m missing, and i don’t really know how to debug this.
Thanks for help.
Source: Ask PHP