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