From f0609eb4a768a1796bc00820c88683b258611536 Mon Sep 17 00:00:00 2001 From: damikael Date: Wed, 18 Oct 2023 11:29:46 +0200 Subject: [PATCH 1/3] fix: add default proxy configuration params --- setup/Setup.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/Setup.php b/setup/Setup.php index e3c0dd1..16659cb 100644 --- a/setup/Setup.php +++ b/setup/Setup.php @@ -658,6 +658,10 @@ 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] ) ), From 7a4d44fa14376dd1ea9d0d52dde09c4979e620a1 Mon Sep 17 00:00:00 2001 From: damikael Date: Wed, 18 Oct 2023 11:30:12 +0200 Subject: [PATCH 2/3] feat: add response attribute prefix option --- setup/sdk/proxy.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/sdk/proxy.tpl b/setup/sdk/proxy.tpl index 31eb5fc..01fea23 100644 --- a/setup/sdk/proxy.tpl +++ b/setup/sdk/proxy.tpl @@ -91,7 +91,9 @@ // dearray values $data = array(); foreach($spidsdk->getAttributes() as $attribute=>$value) { - $data[$attribute] = $value[0]; + $response_attributes_prefix = $proxy_config['clients'][$client_id]['response_attributes_prefix']; + $response_attributes_prefix = $response_attributes_prefix? $response_attributes_prefix : ''; + $data[$response_attributes_prefix.$attribute] = $value[0]; } $client_config = $proxy_config['clients'][$client_id]; From 3747474a2c1e274de322b0b6d81067da7983cdf0 Mon Sep 17 00:00:00 2001 From: damikael Date: Wed, 18 Oct 2023 11:30:24 +0200 Subject: [PATCH 3/3] v.3.18.3 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 439de7d..a0d4ba5 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "config": { - "version": "3.18.2", + "version": "3.18.3", "allow-plugins": { "simplesamlphp/composer-module-installer": true }