From 2134cdcd54c0e6aecab64d7745c6255cc49b3025 Mon Sep 17 00:00:00 2001 From: LDAV Date: Thu, 19 Oct 2023 12:28:31 +0200 Subject: [PATCH 1/3] Update Setup.php fix some syntax errors --- setup/Setup.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup/Setup.php b/setup/Setup.php index 16659cb..021b377 100644 --- a/setup/Setup.php +++ b/setup/Setup.php @@ -658,11 +658,11 @@ public static function setup(Event $event) { "logo"=> "/assets/img/logo.png", "client_id"=> $proxyClientID, "client_secret"=> $proxyClientSecret, - "level": 2, - "atcs_index": 0, - "handler": "Plain", - "response_attributes_prefix": "" - "redirect_uri"=> [$proxyRedirectURI] + "level" => 2, + "atcs_index" => 0, + "handler" => "Plain", + "response_attributes_prefix" => "", + "redirect_uri"=> [$proxyRedirectURI], ) ), 'signProxyResponse'=> $signProxyResponse, @@ -1725,7 +1725,7 @@ public static function remove() { * @param $config * @return array */ - private static function proxyVariables($config): array { + private static function proxyVariables($config) { return array( "{{SDKHOME}}" => $config['installDir'], "{{PROXY_CLIENT_CONFIG}}" => var_export($config['proxyConfig'], true), From b45f330985150686ac56a4102ac41b6e4f1136bc Mon Sep 17 00:00:00 2001 From: Michele D'Amico Date: Fri, 27 Oct 2023 10:37:38 +0200 Subject: [PATCH 2/3] Update composer.json v.3.18.4 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a0d4ba5..3e16a82 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "config": { - "version": "3.18.3", + "version": "3.18.4", "allow-plugins": { "simplesamlphp/composer-module-installer": true } From 7f3fa4537b5b729d82e920599d18a8143e7a785a Mon Sep 17 00:00:00 2001 From: Michele D'Amico Date: Mon, 4 Dec 2023 19:06:04 +0100 Subject: [PATCH 3/3] upd ResponseHandler.php fix for EncryptSign --- lib/ResponseHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ResponseHandler.php b/lib/ResponseHandler.php index 852b5f0..14c8a65 100644 --- a/lib/ResponseHandler.php +++ b/lib/ResponseHandler.php @@ -101,7 +101,7 @@ protected function makeJWS($payload, $exp_time, $iss, $aud, $jwk_pem): string { 'data' => $payload, // Authentication Data ]; - if(array_key_exists('fiscalNumber', $payload)) { // Subject - fiscalNumber, only if exists + if(is_array($payload) && array_key_exists('fiscalNumber', $payload)) { // Subject - fiscalNumber, only if exists $data['sub'] = $payload['fiscalNumber']; } @@ -119,4 +119,4 @@ protected function makeJWS($payload, $exp_time, $iss, $aud, $jwk_pem): string { return $token; } -} \ No newline at end of file +}