There is currently no way to change which property is being used to get the username. This module gets the displayName and uses it as the name
(username) property, but openid_connect checks: $candidates = array('preferred_username', 'name');
. There is not currently a way to set the preferred_username before the username is set in retrieveUserInfo
in OpenidConnectWindowsAadClient.class.php.
I propose adding a hook to alter the user info. See patch file.
This issue is still open because a .patch file was added by mistake, and the new hook was not documented in the .api.php file. See #7.
Closed: won't fix
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.