示例#1
0
 public function testDoesNotAllowSignatureWrappingAttack()
 {
     $response = SamlTestHelper::buildSamlResponse('response4.xml.base64', $this->settings);
     $this->assertEquals('*****@*****.**', $response->getNameId());
 }
示例#2
0
 public function testValidateAssertionValid()
 {
     $response = SamlTestHelper::buildSamlResponse('valid_response.xml.base64', $this->settings);
     $xmlSec = new Maestrano_Saml_XmlSec($this->settings, $response);
     $this->assertTrue($xmlSec->isValid());
 }