No way to alter userinfo before getting 'name' property

Created on 17 December 2018, over 6 years ago
Updated 18 April 2025, 8 days ago

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.

The above hook has already been added.

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.

Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024