diff --git a/src/SAML2/Assertion.php b/src/SAML2/Assertion.php index bd8456915..f3b65b5ba 100644 --- a/src/SAML2/Assertion.php +++ b/src/SAML2/Assertion.php @@ -528,7 +528,7 @@ private function parseAttributeValue($attribute, $attributeName) if ($attributeName === Constants::EPTI_URN_MACE || $attributeName === Constants::EPTI_URN_OID) { foreach ($values as $index => $eptiAttributeValue) { - $eptiNameId = Utils::xpQuery($eptiAttributeValue, './saml:NameID'); + $eptiNameId = Utils::xpQuery($eptiAttributeValue, './saml_assertion:NameID'); if (count($eptiNameId) !== 1) { throw new RuntimeException(sprintf(