You are here

function openid_connect_update_8106 in OpenID Connect / OAuth client 2.x

Same name and namespace in other branches
  1. 8 openid_connect.install \openid_connect_update_8106()

Add default config for Okta provider.

File

./openid_connect.install, line 90
Install, update and uninstall functions for the OpenID Connect module.

Code

function openid_connect_update_8106() {
  $config = \Drupal::configFactory()
    ->getEditable('openid_connect.settings.okta');
  $config
    ->set('enabled', FALSE);
  $config
    ->set('settings', [
    'client_id' => '',
    'client_secret' => '',
    'okta_domain' => '',
  ]);
  $config
    ->save(TRUE);
}