Why does Validate fail on an Assertion created using GetXml()?

0
Hi. I am using the Ultimate SAML trial period. I have a signed and encrypted assertion in xmlDoc and the two different certificates - one for encryption (encryptionCert) and the other for signing (signingCert). 1. From the xmlDoc I can successfully create an EncryptedAssertion. EncryptedAssertion encryptedAssertion = new EncryptedAssertion(xmlDoc.DocumentElement); 2. I can successfully Decrypt the EncryptedAssertion to return an Assertion Assertion assertion = encryptedAssertion.Decrypt(encryptionCert); 3. I can successfully Validate the Assertion (assertion) using the signingCert bool validated = assertion.Decrypt(signingCert); What I cant do is the following: Create a new assertion using GetXml and Validate! I use the GetXml() method on assertion and create a new Assertion (newAssertion). The Validate method returns false. I expect it to return true. Assertion newAssertion = new Assessment(assertion.GetXml()) validated = newAssertion.Validate(signingCert); validated == FALSE! Any ideas?
 
asked 12/4/2018 10:16:52 PM
add a comment

1 Answers

0
Please send us a full test example to support@componentpro.com to reproduce your issue.
 
answered 12/6/2018 3:32:55 AM
  Will do later on. Thanks for the reply. kmrsaml 12/6/2018 10:03:56 PM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged saml or ask your own question.