Skip to content

Commit

Permalink
Merge pull request #9 from GEANT/dv_remove_eptid_fix
Browse files Browse the repository at this point in the history
Remove ePTID fix
  • Loading branch information
dnmvisser authored Feb 3, 2025
2 parents 8ab220c + 2a6c84d commit fc050fa
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Auth/Process/SmartAttrs.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,6 @@ public function process(array &$state): void {
$metadata = Metadata\MetaDataStorageHandler::getMetadataHandler();
$idpmeta = $metadata->getMetaData($entityID, 'saml20-idp-remote');

// See https://simplesamlphp.org/docs/stable/simplesamlphp-upgrade-notes-1.14
if (isset($attributes['eduPersonTargetedID'][0])) {
if ($attributes['eduPersonTargetedID'][0] instanceof NameID) {
$attributes['eduPersonTargetedID'] = [($attributes['eduPersonTargetedID'][0]->getValue())];
}
}

$collected = array(
'mail' => $this->getMail($attributes),
'givenName' => $this->getGivenName($attributes),
Expand Down

0 comments on commit fc050fa

Please sign in to comment.