diff --git a/frontend-ui.php b/frontend-ui.php
index 82babf7..a9d7ae2 100644
--- a/frontend-ui.php
+++ b/frontend-ui.php
@@ -23,16 +23,17 @@ function spid_get_idp_list( $showinfo = false, $spid_redirect_to = '' ) {
}
$shuffle = array();
$shuffle[] = array( 'Infocert ID', 'https://identity.infocert.it', 'infocertid', 1 );
- $shuffle[] = array( 'Tim ID', 'https://login.id.tim.it/affwebservices/public/saml2sso', 'timid', 3 );
$shuffle[] = array( 'Poste ID', 'https://posteid.poste.it', 'posteid', 2 );
+ $shuffle[] = array( 'Tim ID', 'https://login.id.tim.it/affwebservices/public/saml2sso', 'timid', 3 );
$shuffle[] = array( 'Sielte ID', 'https://identity.sieltecloud.it', 'sielteid', 4 );
$shuffle[] = array( 'Aruba ID', 'https://loginspid.aruba.it', 'arubaid', 5 );
$shuffle[] = array( 'Namirial ID', 'https://idp.namirialtsp.com/idp', 'namirialid', 6 );
$shuffle[] = array( 'SpidItalia ID', 'https://spid.register.it', 'spiditalia', 7 );
- $shuffle[] = array( 'Intesa ID', 'https://spid.intesa.it', 'intesaid', 8 );
+ //$shuffle[] = array( 'Intesa ID', 'https://spid.intesa.it', 'intesaid', 8 );
$shuffle[] = array( 'Lepida ID', 'https://id.lepida.it/idp/shibboleth', 'lepidaid', 9 );
$shuffle[] = array( 'TeamSystem ID', 'https://spid.teamsystem.com/idp', 'teamsystemid', 10 );
- $shuffle[] = array( 'Etna ID', 'https://id.eht.eu/SLS', 'etnaid', 11 );
+ $shuffle[] = array( 'Etna ID', 'https://id.eht.eu', 'etnaid', 11 );
+ $shuffle[] = array( 'InfoCamere ID', 'https://loginspid.infocamere.it', 'infocamereid', 12 );
shuffle( $shuffle );
$provider = array_merge( $provider, $shuffle );
diff --git a/img/idp/spid-idp-infocamereid.svg b/img/idp/spid-idp-infocamereid.svg
new file mode 100644
index 0000000..63e6a67
--- /dev/null
+++ b/img/idp/spid-idp-infocamereid.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/img/idp/spid-idp-infocertid.svg b/img/idp/spid-idp-infocertid.svg
index 256fd31..09a4b33 100644
--- a/img/idp/spid-idp-infocertid.svg
+++ b/img/idp/spid-idp-infocertid.svg
@@ -1,34 +1,16 @@
-
-
\ No newline at end of file
+
diff --git a/metadata/idp_12.xml b/metadata/idp_12.xml
new file mode 100644
index 0000000..cc564ee
--- /dev/null
+++ b/metadata/idp_12.xml
@@ -0,0 +1,76 @@
+
+6VPk5UFzdzPzsl0LnX9eIBpYmSnLXcjKgsUl6JVx/aY=HyWysWYJtlR7TvtKQIqIOByvNEFusWMkf+AZSLkTW1MPv5oIqfKk5X7PsytnjEZJLa715TH422Z1t5EU7whMRtGCa7M0BXoNNAr9Ccz8Ud6zjGeb3CJIGAP6hrWBi5AMlxDETydbD5WneH2ioB6t6BfgSt1jfcsS/KeL/qEXlUx15dJP6zqx1/iN2WxXIFIQWXiRUVHE24LctKLvHEx61Bs8pz1WjL4qB0aBdFDVGRwtJKcV4MuSHh/MOikk3rnlk+hdMutu4M7x1GEFBnXrRXwoqFaTARM4sGrmbb9nZboU8PBQIR4kaxQrjveijyYKWDkJJ2n1QX3TXBgOILdooA==MIIIRDCCBiygAwIBAgIINO3vGmIYBP0wDQYJKoZIhvcNAQENBQAwgfsxCzAJBgNVBAYTAklUMQ0w
+CwYDVQQHDARSb21lMSYwJAYDVQQKDB1BZ2VuemlhIHBlciBsJ0l0YWxpYSBEaWdpdGFsZTEwMC4G
+A1UECwwnU2Vydml6aW8gQWNjcmVkaXRhbWVudG8gZSBwcm9nZXR0byBTUElEMTwwOgYDVQQDDDNQ
+cm9nZXR0byBTUElEIC0gR2VzdG9yaSBkaSBJZGVudGl0w6AgRGlnaXRhbGUgKElkUCkxKTAnBgkq
+hkiG9w0BCQEWGnByb3RvY29sbG9AcGVjLmFnaWQuZ292Lml0MRowGAYDVQQFExFWQVRJVC05Nzcz
+NTAyMDU4NDAeFw0yMzAyMjIwMDAwMDBaFw0zMzAyMjEyMzU5NTlaMIG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VX+tN
+PBbjHpKLz2UVZEM=urn:oasis:names:tc:SAML:2.0:nameid-format:transientInfoCamere S.C.p.A.InfoCamere S.C.p.A.https://www.infocamere.it/
\ No newline at end of file
diff --git a/readme.txt b/readme.txt
index 6c51c15..5c571f7 100644
--- a/readme.txt
+++ b/readme.txt
@@ -5,8 +5,8 @@ Tags: spid, italia, sistema, pubblico, identità, digitale, login, sistema pubbl
Requires at least: 4.8
Requires PHP: 7
Tested up to: 6.1
-Version: 2.6
-Stable tag: 2.6
+Version: 2.6.1
+Stable tag: 2.6.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -49,6 +49,11 @@ https://www.youtube.com/watch?v=2UNAtVjFFAs
== Changelog ==
> Backup your data before upgrade.
+= 2.6.1 20230527 =
+* [NEW] Added Infocamere IDP
+* [NEW] Removed IntesaID IDP
+* [BUGFIX] Minor bugfix
+
= 2.6 20230508 =
* [NEW] Added EtnaID IDP
* [BUGFIX] Minor css/code refactoring
diff --git a/wp-spid-italia.php b/wp-spid-italia.php
index 2cb991e..ca94b18 100644
--- a/wp-spid-italia.php
+++ b/wp-spid-italia.php
@@ -3,7 +3,7 @@
Plugin Name: WP SPID Italia
Description: SPID - Sistema Pubblico di Identità Digitale
Author: Marco Milesi
-Version: 2.6
+Version: 2.6.1
Author URI: http://www.marcomilesi.com
*/
@@ -231,7 +231,6 @@ function spid_errors( $errorMsg2 ){
}
}
}
-
add_filter( 'login_errors', 'spid_errors' );
return;
}
@@ -362,8 +361,6 @@ function spid_update_user( $user, $attributes ) {
return;
}
-
-
add_action('wp_enqueue_scripts', function(){
wp_enqueue_style( 'spid-css', plugins_url( 'css/spid-sp-access-button.min.css', __FILE__ ), false );
@@ -383,13 +380,6 @@ function wp_spid_italia_get_login_url( $dir = 'default' ) {
$filter_in = apply_filters( 'spid_filter_login_url_dir_in', $default_url );
$filter_out = apply_filters( 'spid_filter_login_url_dir_out', $default_url );
- /*
- echo 'def'.$default_url.'
';
- echo 'f_def'.$filter_default.'
';
- echo 'f_in'.$filter_in.'
';
- echo 'f_out'.$filter_out.'
';
- */
-
if ( $dir == 'default' ) {
return $filter_default;
}
@@ -421,7 +411,6 @@ function spid_load() {
mkdir( SPID__CERT_DIR );
}
-
require_once( SPID__LIB_DIR . 'vendor/autoload.php' );
// ["name", "fiscalNumber", "email", "spidCode", "familyName", "placeOfBirth", "countyOfBirth", "dateOfBirth", "gender", "mobilePhone", "address"]
@@ -463,4 +452,4 @@ function spid_option($name) {
return false;
}
-?>
+?>
\ No newline at end of file