File tree Expand file tree Collapse file tree 4 files changed +30
-27
lines changed
Expand file tree Collapse file tree 4 files changed +30
-27
lines changed Original file line number Diff line number Diff line change @@ -132,20 +132,18 @@ server {
132132 index index.php;
133133 location ~ \.php$ {
134134 include snippets/fastcgi-php.conf;
135- fastcgi_pass unix:/var/ run/php/php7.0 -fpm.sock;
135+ fastcgi_pass unix:/run/php/php8.1 -fpm.sock;
136136 }
137137 }
138138
139139 location /myservice/ {
140+ alias /var/www/spid-cie-php/vendor/simplesamlphp/simplesamlphp/www/;
140141 index index.php;
141- location ~ \.php(/|$) {
142- fastcgi_split_path_info ^(.+?\.php)(/.+)$;
143- try_files $fastcgi_script_name =404;
144- set $path_info $fastcgi_path_info;
145- fastcgi_param PATH_INFO $path_info;
146- fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
147- fastcgi_index index.php;
148- include fastcgi.conf;
142+ location ~ ^(?<prefix>/myservice)(?<phpfile>.+?\.php)(?<pathinfo>/.*)?$ {
143+ fastcgi_param SCRIPT_FILENAME $document_root$phpfile;
144+ fastcgi_param PATH_INFO $pathinfo if_not_empty;
145+ fastcgi_pass unix:/run/php/php8.1-fpm.sock;
146+ include fastcgi_params;
149147 }
150148 }
151149}
Original file line number Diff line number Diff line change 11{
22 "config" : {
3- "version" : " 3.18.6 " ,
3+ "version" : " 3.18.7 " ,
44 "allow-plugins" : {
55 "simplesamlphp/composer-module-installer" : true
66 }
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ public static function setup(Event $event) {
7373 $ _fpaProvincia = "" ;
7474 $ _fpaNazione = "IT " ;
7575 $ _fpaOrganizationName = "" ;
76- $ _fpaOrganizationEmailAddress = "" ;
77- $ _fpaOrganizationTelephoneNumber = "" ;
76+ $ _fpaOrganizationEmailAddress = "info@organization.org " ; // must be not null otherwise an error is raised in authentication
77+ $ _fpaOrganizationTelephoneNumber = "+3912345678 " ; // must be not null otherwise an error is raised in authentication
7878
7979 $ config = file_exists ("spid-php-setup.json " ) ?
8080 json_decode (file_get_contents ("spid-php-setup.json " ), true ) : array ();
@@ -1013,12 +1013,19 @@ public static function setup(Event $event) {
10131013 } catch (Exception $ e ) {
10141014 $ symlink_manual_creation_command = "WARNING! At the end of the installation execute as administrator this command: \n$ mklink_cmd " ;
10151015 }
1016-
1016+
10171017 } else {
10181018 // linux
1019- symlink ($ cmd_target , $ cmd_link );
1019+ if (is_link ($ cmd_link )) {
1020+ if (readlink ($ cmd_link ) != $ cmd_target ) {
1021+ $ symlink_manual_creation_command = "WARNING! At the end of the installation check the symbolic link at $ cmd_link, it must link to $ cmd_target " ;
1022+ }
1023+ }
1024+ else {
1025+ symlink ($ cmd_target , $ cmd_link );
1026+ }
10201027 }
1021-
1028+
10221029 if ($ symlink_manual_creation_command === false ) {
10231030 echo $ colors ->getColoredString ("OK " , "green " );
10241031 } else {
Original file line number Diff line number Diff line change 532532 return $button_li ;
533533 }
534534
535- public function insertCIEButton($size = 'default') {
536- echo "
537- <div class=\" cie-button\" style=\" width: 280px;\" >
538- <a class=\" cie-button\" role=\" button\"
539- href=\" ?idp=CIE TEST\" >
540- <span class=\" cie-button-icon\" >
541- <img aria-hidden=\" true\" src=\" /{{SERVICENAME}}/cie-graphics/SVG/entra_con_cie.svg\" alt=\" Entra con CIE\" />
542- </span>
543- <span class=\" sr-only\" style=\" display:none\" >Entra con CIE</span>
544- </a>
545- </div>
546- " ;
535+ public function insertCIEButton($size = 'L') {
536+ $size = strtolower($size );
537+ if ($size == 'default') {
538+ $size = 'l';
539+ }
540+
541+ echo " <a href=\" ?idp=CIE TEST\" class=\" italia-it-button italia-it-button-size-$size button-cie\" aria-haspopup=\" true\" aria-expanded=\" false\" >
542+ <img src=\" /{{SERVICENAME}}/cie-graphics/SVG/entra_con_cie.svg\" alt=\" Entra con CIE\" />
543+ <span class=\" sr-only\" style=\" display:none\" >Entra con CIE</span>
544+ </a>" ;
547545 }
548546 }
549547
You can’t perform that action at this time.
0 commit comments