Skip to content

Commit

Permalink
feat: add TeamSystem IdP to SPID button
Browse files Browse the repository at this point in the history
  • Loading branch information
damikael authored Oct 14, 2022
1 parent da4b05a commit aca8210
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setup/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,8 @@ public static function updateMetadata() {
case "https://posteid.poste.it": $icon = "spid-sp-access-button/img/spid-idp-posteid.svg"; break;
case "https://identity.sieltecloud.it": $icon = "spid-sp-access-button/img/spid-idp-sielteid.svg"; break;
case "https://spid.register.it": $icon = "spid-sp-access-button/img/spid-idp-spiditalia.svg"; break;
case "https://login.id.tim.it/affwebservices/public/saml2sso": $icon = "spid-sp-access-button/img/spid-idp-timid.svg"; break;
case "https://login.id.tim.it/affwebservices/public/saml2sso": $icon = "spid-sp-access-button/img/spid-idp-teamsystemid.svg"; break;
case "https://spid.teamsystem.com/idp": $icon = "spid-sp-access-button/img/spid-idp-timid.svg"; break;
}

$vars = array(
Expand Down
5 changes: 4 additions & 1 deletion setup/sdk/proxy-spid-php.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ class PROXY_SPID_PHP extends SPID_PHP {
<a href=\"/proxy-spid.php?client_id=".$this->client_id."&action=login&redirect_uri=".$this->redirect_uri."&idp=Sielte S.p.A.&state=".$this->state."\"><span class=\"spid-sr-only\">Sielte ID</span><img src=\"/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-sielteid.svg\" onerror=\"this.src='/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-sielteid.png'; this.onerror=null;\" alt=\"Sielte ID\" /></a>
</li>
<li class=\"spid-idp-button-link\" data-idp=\"spiditalia\">
<a href=\"/proxy-spid.php?client_id=".$this->client_id."&action=login&redirect_uri=".$this->redirect_uri."&idp=Register.it S.p.A.&state=".$this->state."\"><span class=\"spid-sr-only\">SPIDItalia Register.it</span><img src=\"/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-spiditalia.svg\" onerror=\"this.src='/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-spiditalia.png'; this.onerror=null;\" alt=\"SpidItalia\" /></a>
<a href=\"/proxy-spid.php?client_id=".$this->client_id."&action=login&redirect_uri=".$this->redirect_uri."&idp=Register.it S.p.A.&state=".$this->state."\"><span class=\"spid-sr-only\">Tim ID</span><img src=\"/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-timid.svg\" onerror=\"this.src='/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-timid.png'; this.onerror=null;\" alt=\"Tim ID\" /></a>
</li>
<li class=\"spid-idp-button-link\" data-idp=\"teamsystemid\">
<a href=\"/proxy-spid.php?client_id=".$this->client_id."&action=login&redirect_uri=".$this->redirect_uri."&idp=TeamSystem s.p.a.&state=".$this->state."\"><span class=\"spid-sr-only\">TeamSystem ID</span><img src=\"/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-teamsystemid.svg\" onerror=\"this.src='/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-teamsystemid.png'; this.onerror=null;\" alt=\"TeamSystem ID\" /></a>
</li>
<li class=\"spid-idp-button-link\" data-idp=\"timid\">
<a href=\"/proxy-spid.php?client_id=".$this->client_id."&action=login&redirect_uri=".$this->redirect_uri."&idp=TI Trust Technologies srl&state=".$this->state."\"><span class=\"spid-sr-only\">Tim ID</span><img src=\"/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-timid.svg\" onerror=\"this.src='/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-timid.png'; this.onerror=null;\" alt=\"Tim ID\" /></a>
Expand Down
3 changes: 3 additions & 0 deletions setup/sdk/spid-php.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@
<li class=\"spid-idp-button-link\" data-idp=\"spiditalia\">
<button class=\"idp-button-idp-logo\" name=\"idp\" value=\"Register.it S.p.A.\" type=\"submit\"><span class=\"spid-sr-only\">SPIDItalia Register.it</span><img class=\"spid-idp-button-logo\" src=\"/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-spiditalia.svg\" onerror=\"this.src='/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-spiditalia.png'; this.onerror=null;\" alt=\"SpidItalia\" /></button>
</li>
<li class=\"spid-idp-button-link\" data-idp=\"teamsystemid\">
<button class=\"idp-button-idp-logo\" name=\"idp\" value=\"TeamSystem s.p.a.\" type=\"submit\"><span class=\"spid-sr-only\">TeamSystem ID</span><img class=\"spid-idp-button-logo\" src=\"/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-teamsystemid.svg\" onerror=\"this.src='/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-teamsystemid.png'; this.onerror=null;\" alt=\"TeamSystem ID\" /></button>
</li>
<li class=\"spid-idp-button-link\" data-idp=\"timid\">
<button class=\"idp-button-idp-logo\" name=\"idp\" value=\"TI Trust Technologies srl\" type=\"submit\"><span class=\"spid-sr-only\">Tim ID</span><img class=\"spid-idp-button-logo\" src=\"/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-timid.svg\" onerror=\"this.src='/{{SERVICENAME}}/spid-sp-access-button/img/spid-idp-timid.png'; this.onerror=null;\" alt=\"Tim ID\" /></button>
</li>
Expand Down

0 comments on commit aca8210

Please sign in to comment.