Subject: Verify SAML Conditions
Date: 2018-12-06 20:33:39
From: smcgillha
Source: verify-saml-conditions
----------------------------------------------------------------------

Hello, I'm trying to figure out how to validate time conditions for inbound single sign-on to our system, ie. external system users get logged into our site.  How do I check these conditions w/ a populated Response object?

Eg.  

  var response = new Response(encodedSamlResponse);
  
// Need to validate NotBefore and NotOnOrAfter - if fails, reject the user

I see documentation for SubjectConfirmationData - IsWithinTimePeriod, how do I get an instance of the subject confirmation from a given response?

Thanks!

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

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