You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, I need additional keys from LDAP. The returned LDAP keys are hardcoded to the
predefined key-value-pairs as in UserInfoLoader. See code below or at UserInfoLoader:28
class UserInfoLoader extends BaseHandler
{
publicfunction __construct($loadInfo = NULL)
{
$this->loadInfo = is_array($loadInfo) ? $loadInfo : array(
// Useful attributes'givenName' => 'firstName',
'sn' => 'lastName',
'name' => 'fullName',
// (more default attributes here ...)'initials' => 'initials', // <-- more key(s) needed for my project
);
Idea
Why not override or extend the $loadInfo on instantiation, so the contructor
either merges or overrides the defaults with the user defined key-value-pairs.
For example: pass the user parameters into Authenticator:88
$this->userInfoLoader = newUserInfoLoader( /* user input here */ );
Thank you for your great work!
The text was updated successfully, but these errors were encountered:
maxpower9000
changed the title
Option to set individual loadInfo
Receive optional loadInfo keys from LDAP
Dec 14, 2017
Issue
In my project, I need additional keys from LDAP. The returned LDAP keys are hardcoded to the
predefined key-value-pairs as in
UserInfoLoader
. See code below or at UserInfoLoader:28Idea
Why not override or extend the
$loadInfo
on instantiation, so the contructoreither merges or overrides the defaults with the user defined key-value-pairs.
For example: pass the user parameters into Authenticator:88
Thank you for your great work!
The text was updated successfully, but these errors were encountered: