Warning: Undefined array key "end_session_endpoint" since 3322786

Created on 10 November 2023, 8 months ago
Updated 22 December 2023, 6 months ago

Problem/Motivation

Spun from:
โœจ Implement end_session endpoint option Fixed

We're seeing a warning message when using the latest release of openid_connect_windows_aad 2.0.0-beta6 with openid_connect 3.0.0-alpha2

For some reason we do not have end_session_endpoint configured or set yet, and the module is throwing an unhandled/unexpected warning message straight from php.

Warning: Undefined array key "end_session_endpoint" in Drupal\openid_connect_windows_aad\Plugin\OpenIDConnectClient\WindowsAad->getEndpoints() (line 290 of modules/contrib/openid_connect_windows_aad/src/Plugin/OpenIDConnectClient/WindowsAad.php).
Drupal\openid_connect_windows_aad\Plugin\OpenIDConnectClient\WindowsAad->getEndpoints() (Line: 68)
Drupal\openid_connect_windows_aad\Plugin\OpenIDConnectClient\WindowsAad->__construct(Array, 'windows_aad', Array, Object, Object, Object, Object, Object, Object, Object, Object, Object) (Line: 88)
Drupal\openid_connect_windows_aad\Plugin\OpenIDConnectClient\WindowsAad::create(Object, Array, 'windows_aad', Array) (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('windows_aad', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('windows_aad', Array) (Line: 62)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin('windows_aad') (Line: 49)
Drupal\openid_connect\Plugin\OpenIDConnectClientCollection->initializePlugin('windows_aad') (Line: 80)
Drupal\Component\Plugin\LazyPluginCollection->get('windows_aad') (Line: 83)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration(Array) (Line: 99)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId('windows_aad', Array) (Line: 55)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct(Object, 'windows_aad', Array) (Line: 37)
Drupal\openid_connect\Plugin\OpenIDConnectClientCollection->__construct(Object, 'windows_aad', Array, 'windows_aad') (Line: 142)
...

Steps to reproduce

using the latest release of openid_connect_windows_aad 2.0.0-beta6 with openid_connect 3.0.0-alpha2
For some reason we do not have end_session_endpoint configured or set yet, and the module is throwing an unhandled/unexpected warning message straight from php.

Proposed resolution

workaround would be to set a value for end_session_endpoint

Remaining tasks

Create a patch

User interface changes

TBD

API changes

TBD

Data model changes

N/A

๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada joseph.olstad

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024