Set default value of the 'subject_key'

Created on 27 June 2023, almost 2 years ago
Updated 30 June 2023, almost 2 years ago

Problem/Motivation

#3008341: Override the 'sub' parameter in the user data tokens introduced an new required configuration property 'subject_key', but no update path was provided. This results in "Warning: Undefined array key "subject_key" in openid_connect_windows_aad_openid_connect_userinfo_alter() (line 224 of /app/web/modules/contrib/openid_connect_windows_aad/openid_connect_windows_aad.module) "

Steps to reproduce

Update the module from 2.0.0-beta2 to 2.0.0-beta3 and log in using AAD.

Proposed resolution

Add hook_update() implementation to set the default value of 'subject_key' => 'sub' as in the default configuration of WindowsAad plugin.

Remaining tasks

  • Patch - done
  • Review
  • Commit
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇿New Zealand RoSk0 Wellington

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

Comments & Activities

Production build 0.71.5 2024