While investigating https://www.drupal.org/node/2744495, I found changes made to settings.php to override Open ID Google client ID and secret ID were being displayed in the admin configuration form /admin/config/services/openid-connect due to the code in src/Form/SettingsForm.php:

$configuration = $this->config('openid_connect.settings.' . $client_name)

rather than the use of:

$configuration = $this->configFactory()
        ->getEditable('openid_connect.settings.' . $client_name)
         ->get('settings');

This the the potential side affect of storing overridden values from code into the database when saving the form (see https://www.drupal.org/node/1928898)

Comments

kducharm created an issue. See original summary.

kducharm’s picture

Status: Active » Needs review
StatusFileSize
new2.08 KB

Patch created to use getEditable() instead of get(), also rename $config to $config_settings to avoid confusion with $configuration

sanduhrs’s picture

Slightly modified, thanks for the patch!

sanduhrs’s picture

Status: Needs review » Reviewed & tested by the community

  • sanduhrs committed a5c10fe on 8.x-1.x
    Issue #2746587 by kducharm, sanduhrs: Admin settings form reading...
sanduhrs’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.