We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8448205 commit 748293eCopy full SHA for 748293e
tests/src/OneLogin/Saml2/ResponseTest.php
@@ -1823,4 +1823,12 @@ public function testIsValidSignUsingX509certMulti()
1823
$response = new Response($settings, $xml);
1824
$this->assertTrue($response->isValid());
1825
}
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
+ }
1834
0 commit comments