Email field is not mapped correctly for Azure Integration

Created on 11 February 2021, about 4 years ago
Updated 18 April 2025, 8 days ago

I'm cloning the D8 issue https://www.drupal.org/project/openid_connect_windows_aad/issues/2930510 so the port in comment #6 can be ported to D7 as I've just run into the same issue now.

Throughout the openid_connect module, the user's mail mapping uses $userinfo['email']. However, the returned user's info object in the integration with Azure uses $userinfo['mail'].

The patch that ended up being applied and released to the D8 version simply replaces 'email' with 'mail', and then makes sure it creates a new item in the array for 'email' as well so the openid_connect module can continue using it.

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom oldspot

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