Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 49a9419

Browse files
committed
Patch for correct convert NameID to string
1 parent 9ea7d8f commit 49a9419

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/Auth/Process/StringifyTargetedID.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ public function process(&$request)
5050
* Convert NameID value into the text representation.
5151
*/
5252
private function stringify($attributeValue) {
53-
if (is_object($attributeValue) && get_class($attributeValue) == "DOMNodeList") {
54-
55-
$nameid = new SAML2_XML_saml_NameID($attributeValue->item(0));
56-
57-
return $nameid->NameQualifier . '!' . $nameid->SPNameQualifier . '!' . $nameid->value;
53+
if (is_object($attributeValue) && get_class($attributeValue) == "SAML2\XML\saml\NameID") {
54+
return $attributeValue->NameQualifier . '!' . $attributeValue->SPNameQualifier . '!' . $attributeValue->value;
5855
} else {
5956
return $attributeValue;
6057
}

0 commit comments

Comments
 (0)