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

bugfix: Make the core:TargetedID authproc filter return also a NameID object...

bugfix: Make the core:TargetedID authproc filter return also a NameID object instead of its string representation.
parent f0a323fc
No related branches found
No related tags found
No related merge requests found
...@@ -134,16 +134,11 @@ class sspmod_core_Auth_Process_TargetedID extends SimpleSAML_Auth_ProcessingFilt ...@@ -134,16 +134,11 @@ class sspmod_core_Auth_Process_TargetedID extends SimpleSAML_Auth_ProcessingFilt
if (isset($state['Destination']['entityid'])) { if (isset($state['Destination']['entityid'])) {
$nameId->SPNameQualifier = $state['Destination']['entityid']; $nameId->SPNameQualifier = $state['Destination']['entityid'];
} }
} else {
$doc = \SAML2\DOMDocumentFactory::create(); $nameId = $uid;
$root = $doc->createElement('root');
$doc->appendChild($root);
$nameId->toXML($root);
$uid = $doc->saveXML($root->firstChild);
} }
$state['Attributes']['eduPersonTargetedID'] = array($uid); $state['Attributes']['eduPersonTargetedID'] = array($nameId);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment