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

Commit bf02770

Browse files
committed
HACK - put EPTID also into eduPersonPrincipalName attribut
HACK must be removed after ELIXIR Perun will start to consume original entityIDs as is default for other instances.
1 parent a7f428c commit bf02770

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Auth/Process/ProcessTargetedID.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public function process(&$request)
7676
# Set attributes back to the response
7777
# Set uid and also eduPersonPrincipalName, so all the modules and Perun will be happy
7878
$request['Attributes'][$this->uidAttr] = array($newEduPersonPrincipalName);
79+
# TODO line below must be removed after ELIXIR will be switched to default behaviour, so Perun will consume original eppn and entityID
80+
$request['Attributes']['eduPersonPrincipalName'] = array($newEduPersonPrincipalName);
7981

8082
}
8183

0 commit comments

Comments
 (0)