Skip to content

Commit 748293e

Browse files
committed
Add test case for encrypted name id in encrypted assertion
1 parent 8448205 commit 748293e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/src/OneLogin/Saml2/ResponseTest.php

+8
Original file line numberDiff line numberDiff line change
@@ -1823,4 +1823,12 @@ public function testIsValidSignUsingX509certMulti()
18231823
$response = new Response($settings, $xml);
18241824
$this->assertTrue($response->isValid());
18251825
}
1826+
1827+
public function testCanGetEncryptedNameIdInEncryptedAssertion()
1828+
{
1829+
$xml = file_get_contents(TEST_ROOT . '/data/responses/response_encrypted_nameid_encrypted_assertion.xml.base64');
1830+
$response = new Response($this->_settings, $xml);
1831+
$this->assertTrue($response->isValid());
1832+
$this->assertSame('[email protected]', $response->getNameId());
1833+
}
18261834
}

0 commit comments

Comments
 (0)