From 61cda0af3353f6ac48110a6317ff5f78f82bb581 Mon Sep 17 00:00:00 2001 From: iglocska Date: Mon, 28 Feb 2022 10:27:17 +0100 Subject: [PATCH] fix: [minor fixes] with the keycloak integration --- src/Model/Behavior/AuthKeycloakBehavior.php | 3 +-- src/Model/Table/SettingProviders/CerebrateSettingsProvider.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Model/Behavior/AuthKeycloakBehavior.php b/src/Model/Behavior/AuthKeycloakBehavior.php index fb73bdd..7cbb5ca 100644 --- a/src/Model/Behavior/AuthKeycloakBehavior.php +++ b/src/Model/Behavior/AuthKeycloakBehavior.php @@ -134,8 +134,7 @@ class AuthKeycloakBehavior extends Behavior 'headers' => [ 'Content-Type' => 'application/json', 'Authorization' => 'Bearer ' . $token - ], - 'ssl_verify_peer' => false + ] ] ); $logChange = [ diff --git a/src/Model/Table/SettingProviders/CerebrateSettingsProvider.php b/src/Model/Table/SettingProviders/CerebrateSettingsProvider.php index 5ed9f3b..9cf755d 100644 --- a/src/Model/Table/SettingProviders/CerebrateSettingsProvider.php +++ b/src/Model/Table/SettingProviders/CerebrateSettingsProvider.php @@ -398,7 +398,7 @@ class CerebrateSettingValidator extends SettingValidator $foundEnabledAuth = __('Cannot make change - this would disable every possible authentication method.'); foreach ($providers as $provider) { if ($provider !== $setting['authentication_type']) { - if (Configure::read($provider . '.enable')) { + if (Configure::read($provider . '.enabled')) { $foundEnabledAuth = true; } }