- Issue created by @eduardo.arana
- Status changed to Closed: duplicate
over 1 year ago 7:15am 14 June 2023 - Status changed to Needs review
over 1 year ago 9:03am 14 June 2023 - 🇪🇸Spain eduardo.arana
Please review it again, this affects 3.0.0-alpha2 version and the warning and deprecated function are not related with https://www.drupal.org/project/openid_connect/issues/3266452 🐛 Adding Generic Oauth2 app and set empty scope then cause system crash RTBC
Thanks.
- last update
over 1 year ago 100 pass - 🇲🇾Malaysia elaine.ong
The patch does not seems to fix the warning. Still getting below:
Warning: Array to string conversion in Drupal\openid_connect\OpenIDConnect->saveUserinfo() (line 695 of modules/contrib/openid_connect/src/OpenIDConnect.php).
Drupal\openid_connect\OpenIDConnect->saveUserinfo(Object, Array) (Line: 413)
Drupal\openid_connect\OpenIDConnect->completeAuthorization(Object, Array) (Line: 296)
Drupal\openid_connect\Controller\OpenIDConnectRedirectController->authenticate(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74) - 🇭🇺Hungary szato
@elaine.ong
it's caused by nested role arrays. Related issue: https://www.drupal.org/project/openid_connect_windows_aad/issues/3345637 🐛 Roles unassigned due to array to string conversion Active
- Status changed to Needs work
7 months ago 7:02am 2 May 2024 - 🇫🇮Finland heikkiy Oulu
The patch from #5 does not seem to apply anymore against the latest alpha 3. Marking this as Needs work. I will test if the related issues could also solve the issue.