function openid_connect_update_8201 in OpenID Connect / OAuth client 2.x
Update the active config for installations using generic client.
File
- ./
openid_connect.install, line 181 - Install, update and uninstall functions for the OpenID Connect module.
Code
function openid_connect_update_8201() {
/** @var \Drupal\openid_connect\OpenIDConnectClientEntityInterface[] $clients */
$clients = \Drupal::entityTypeManager()
->getStorage('openid_connect_client')
->loadByProperties([
'plugin' => 'generic',
]);
foreach ($clients as $client) {
$client
->getPlugin()
->setConfiguration([
'issuer_url' => '',
]);
$client
->save();
}
}