Call to undeclared method "decodeIdToken"

Created on 15 March 2023, over 1 year ago
Updated 28 March 2023, over 1 year ago

Problem/Motivation

In the module file is a undeclared/deprecated/removed method call.

  // Decode user data from ID token. The hook does not provide the decoded
  // token information. So we create a new instance of the openid_connect
  // Keycloak plugin and use its decode method to decode the token again.
  // @see https://www.drupal.org/project/openid_connect/issues/2921095
  $client = $keycloak->getClientInstance();
  $user_data = $client->decodeIdToken($tokens['id_token']);

Check what the replacement should be.

🐛 Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

🇧🇪Belgium BramDriesen Belgium 🇧🇪

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

Comments & Activities

Production build 0.71.5 2024