0

Retrieve additional user data through phpCAS

ojathelonius 6 years ago 0

Currently, CAS authentication only retrieves the user login through phpCAS.


It would be awesome to have a way to get more data from the single sign-on server, e.g :


/* Current behaviour in getAlternateAuthSystemsUserLogin() */
$this->user->fields['name'] = phpCAS::getUser()
/* Desired behaviour */
$additionalAttributes = phpCAS::getAttributes();
$profile = additionalAttributes['cas_profile_key'];


Ideally, the user should be able to map GLPI user data with CAS data, just like with external auth.


I worked on a solution but it is limited to my own use case thus is not quite generic. I would love to help though.