When signing a SAML Response that also has a signed Assertion, should I:
A) Generate the Response signature without the Assertion signature. Then inject the Assertion signature after both signatures have been generated.
B) Generate the Assertion signature and include it when generating the Response signature.
C) Something else?
SAML is awful, every time I read answer they are almost correct, here is the correct algorithm distilled:
Thats it. SAML is completely awful. There are tons of little subtleties that make implementing SAML a nightmare(like calculating the canonical form of a subset of the XML(the assertion), also the XML version of XML documents is not included.
I finished my implementation, I hope never to revisit such pain again.