I'm using ITfoxtec.Identity.Saml2 4.8.0, .net 6 and am attempting to use AWS SSO as an iDP for an mvc app. I am using the sample code on the project home page.
I'm having a problem with the signature verification on the saml response AWS posts back to me via browser redirect after i successfully log into the iDP.
In stepping through the code there is a two phase signature verification, the first on the signature node of the entire response xml, and the second on the signature of the assertion node within the response xml. In my case the signature verification is successful on the overall document, but is failing on the assertion node (false is returned here).
Has anyone else come across this issue or have any suggestions for next steps in troubleshooting? I've read through much of the library and see whitespace being preserved while loading xml, and the canonicalization used by aws matches what the library is applying. The payload from AWS has the public cert in both signature blocks and they are the same in both places (and match what i have in my PEM file)