Subject: SAML Response Validation
Date: 2020-07-14 13:06:13
From: pjoshi
Source: saml-response-validation
----------------------------------------------------------------------

We are getting false result when we tried to validate the SAML response XML with the public key provided by my client. My client is saying that their SAML Response is in correct format. So could you please help me in understanding what all the conditions would cause this false result ?

Here is a code

            // Load the SAML response
            var samlResponse = new Response(rawSamlData);            

            //verify the signature with id provider key
            if (!samlResponse.Validate(signatureCertificate))
            {
                throw new ApplicationException("SAML Response signature is not valid");
            }

SAML Response XML:

    
	xxxxxxxxxxxx
	
		
			
			
			
				
					
					
				
				
				mWwX576OdJppX3ro7pWgGO6WnrI=
			
		
		{signature value}
		
			
				{client public cert}
			
		
	
	
		
	
	
		xxx
		
			XXX
			
				
			
		
		
			
				xxxxxxxxxxxx
			
		
		
			
				AuthnContextClassRef
			
		
				
			
				XXX
			
			
				XXX
			
			
				XXX
			
		
	


----------------------------------------------------------------------

Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.

Back to ComponentPro Q&A Forum Index