Skip to content

Commit

Permalink
Merge pull request #234 from italia/master
Browse files Browse the repository at this point in the history
fix dev
  • Loading branch information
damikael committed Jan 22, 2024
2 parents 3747474 + 7f3fa45 commit fe1cec8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"config": {
"version": "3.18.3",
"version": "3.18.4",
"allow-plugins": {
"simplesamlphp/composer-module-installer": true
}
Expand Down
4 changes: 2 additions & 2 deletions lib/ResponseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}

Expand All @@ -119,4 +119,4 @@ protected function makeJWS($payload, $exp_time, $iss, $aud, $jwk_pem): string {

return $token;
}
}
}
12 changes: 6 additions & 6 deletions setup/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit fe1cec8

Please sign in to comment.