@drazumovskiy I think you’re experiencing this issue: https://github.com/pantheon-systems/wp-saml-auth/issues/62
It hasn’t landed in a release yet because it’s included in https://github.com/pantheon-systems/wp-saml-auth/pull/68
Can you try that branch to see if your issue is fixed? Also, with that branch, you can use the OneLogin SAML library instead of maintaining a separate SimpleSAMLphp installation
Hi Daniel,
Thank you for a prompt responce!
Your solution might work if I find out how to properly configure OneLogin library using functions.php of my theme.
Currently I stopped on message validation, coming from OneLogin.
On the side of IdP (which is also built on pure SimpleSAMLphp) I have this error message:
Caused by: SimpleSAML_Error_Exception: Validation of received messages enabled, but no signature found on message
When yesterday I was using simplesaml version of auth library I set:
'sign.authnrequest' => TRUE,
'sign.logout' => TRUE
in saml20-idp-remote.php to fix this error.
Now, with OneLogin, I don’t know how to force the library to sign the request.
Can you suggest a parameter that switch on request signing?
-
This reply was modified 8 years, 9 months ago by
DRazumovskiy.
It’s hard to say what the issue is without being able to debug directly.
One suggestion I have is to look at the configuration script for the Behat integration tests, which provision a SimpleSAMLphp instance in IdP mode.
Notably, behat-prepare.sh and the fixtures it uses. Those are all settings for a functional SimpleSAMLphp IdP, so maybe there’s some obvious difference between that and what you have.
For the error message itself, the first thing I’d debug is whether the signing cert is being picked up on both sides. It seems like misconfiguration of the cert might lead to that sort of message. The x509cert argument for OneLogin requires reading the cert into PHP memory with file_get_contents() or similar, not specifying the file path.