Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Signature validation fails when using SAML token. [SWS-794] #876
Validation of SAML assertions results in an error in the verifyCertificateTrust() method because this method assumes that signatures are always signed by an X509 certificate. The SAML spec gives an example of a signature that uses the SAML assertion to sign the signature in section 188.8.131.52 Example V2.0 from http://docs.oasis-open.org/wss/v1.1/wss-v1.1-spec-os-SAMLTokenProfile.pdf. After checking "if (actionResult != null)" the type of token(X509, public key, or SAML) used for the signature should be determined and trust should be verified accordingly. The name of the method should probably be changed to since it would be verifying trust on more than just certificates.
Affects: 2.1 GA