Subject: | Signed Responses cause verification failure |
If your IDP returns a SAMLResponse that has the Response and Assertion signed verification fails.
Net::SAML2::XML::Sig always does //dsig:Signature etc. for xpath queries. The problem is that since the SAMLResponse that has both signed response and signed assertion when the xml gets stringified for the exponent (and others) it just concats the exponent twice. After adding //saml2:Assertion in the xpath, verification started succeeding.
\- Mike