The implementation of OneLogin_Saml2_Response::validateSignedElements has changed so that it checks the elements based on their local name rather than full tag name (included namespace), due to changes in OneLogin_Saml2_Response::isValid.
This causes issues where the validation of signed elements fails with the exception 'Found an unexpected Signature Element. SAML Response rejected'.
The saml_sp_Response class should be removed as it does nothing else than override this method (why does it even exist?).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2649478-saml_sp-validation_of_signed_elements_fails-2.patch | 2.66 KB | syastrov |
Comments
Comment #2
syastrov commentedComment #3
tizzo commentedLGTM. This patch resolved my issue in oauthing against a liferay IdP.
Comment #4
alimc29 commentedThis patch works for us, as well
Comment #5
arnt commentedWe ran into this as well. If this patch wasn't applied to keep compatibility with both old and new versions of OneLogin_Saml2_Response, saml_sp_Response::validateSignedElements should be extended to also allow 'Response', instead of only 'samlp:Response'.
Comment #6
jrglasgow commentedI actually already made this change in the code base a few months ago, without seeing this issue