public function testValidateAssertionValid() { $assertion = file_get_contents(TEST_ROOT . '/data/responses/valid_response.xml.base64'); $response = new OneLogin_Saml_Response($this->_settings, $assertion); $xmlSec = new OneLogin_Saml_XmlSec($this->_settings, $response); $this->assertTrue($xmlSec->isValid()); }
/** * Determine if the SAML Response is valid using the certificate. * * @throws Exception * @return bool Validate the document */ public function isValid() { $xmlSec = new OneLogin_Saml_XmlSec($this->_settings, $this); return $xmlSec->isValid(); }