Set default value of the 'subject_key'

Created on 27 June 2023, 12 months ago
Updated 30 June 2023, 12 months 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.69.0 2024