Skip to content
Snippets Groups Projects
Unverified Commit f0a323fc authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

bugfix: NameIDs are created now as objects, so their information can't any...

bugfix: NameIDs are created now as objects, so their information can't any longer be accessed as an array.
parent c0308d63
No related branches found
No related tags found
No related merge requests found
...@@ -69,16 +69,6 @@ class sspmod_saml_Auth_Process_PersistentNameID2TargetedID extends SimpleSAML_Au ...@@ -69,16 +69,6 @@ class sspmod_saml_Auth_Process_PersistentNameID2TargetedID extends SimpleSAML_Au
/** @var \SAML2\XML\saml\NameID $nameID */ /** @var \SAML2\XML\saml\NameID $nameID */
$nameID = $state['saml:NameID'][\SAML2\Constants::NAMEID_PERSISTENT]; $nameID = $state['saml:NameID'][\SAML2\Constants::NAMEID_PERSISTENT];
if ($this->nameId) { $state['Attributes'][$this->attribute] = array((!$this->nameId) ? $nameID->value : $nameID);
$doc = \SAML2\DOMDocumentFactory::create();
$root = $doc->createElement('root');
$doc->appendChild($root);
$nameID->toXML($root);
$value = $doc->saveXML($root->firstChild);
} else {
$value = $nameID['Value'];
}
$state['Attributes'][$this->attribute] = array($value);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment