Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get SPID buttons to work in (pre)production? #29

Open
unicg opened this issue Nov 7, 2024 · 0 comments
Open

How to get SPID buttons to work in (pre)production? #29

unicg opened this issue Nov 7, 2024 · 0 comments

Comments

@unicg
Copy link

unicg commented Nov 7, 2024

Hello!

We use dev branch of spid-cie-oidc-php to get SPID and CIE to work. All available SPID buttons are commented out in the following code:

<!--
<li class="spid-idp-button-link" data-idp="arubaid">
<a href="<?php echo $BASEURL; ?>/oidc/rp/<?php echo $DOMAIN; ?>/authz/<?php echo base64_encode('http://trust-anchor.org:8000'); ?>/<?php echo base64_encode('http://trust-anchor.org:8000/oidc/op'); ?>?state=ArubaPEC S.p.A."><span class="spid-sr-only">Aruba ID</span><img src="<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-arubaid.svg" onerror="this.src='<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-arubaid.png'; this.onerror=null;" alt="Aruba ID" /></a>
</li>
<li class="spid-idp-button-link" data-idp="infocertid">
<a href="<?php echo $BASEURL; ?>/oidc/rp/<?php echo $DOMAIN; ?>/authz/<?php echo base64_encode('http://trust-anchor.org:8000'); ?>/<?php echo base64_encode('http://trust-anchor.org:8000/oidc/op'); ?>?state=InfoCert S.p.A."><span class="spid-sr-only">Infocert ID</span><img src="<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-infocertid.svg" onerror="this.src='<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-infocertid.png'; this.onerror=null;" alt="Infocert ID" /></a>
</li>
<li class="spid-idp-button-link" data-idp="intesaid">
<a href="<?php echo $BASEURL; ?>/oidc/rp/<?php echo $DOMAIN; ?>/authz/<?php echo base64_encode('http://trust-anchor.org:8000'); ?>/<?php echo base64_encode('http://trust-anchor.org:8000/oidc/op'); ?>?state=IN.TE.S.A. S.p.A."><span class="spid-sr-only">Intesa ID</span><img src="<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-intesaid.svg" onerror="this.src='<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-intesaid.png'; this.onerror=null;" alt="Intesa ID" /></a>
</li>
<li class="spid-idp-button-link" data-idp="lepidaid">
<a href="<?php echo $BASEURL; ?>/oidc/rp/<?php echo $DOMAIN; ?>/authz/<?php echo base64_encode('http://trust-anchor.org:8000'); ?>/<?php echo base64_encode('http://trust-anchor.org:8000/oidc/op'); ?>?state=Lepida S.p.A."><span class="spid-sr-only">Lepida ID</span><img src="<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-lepidaid.svg" onerror="this.src='<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-lepidaid.png'; this.onerror=null;" alt="Lepida ID" /></a>
</li>
<li class="spid-idp-button-link" data-idp="namirialid">
<a href="<?php echo $BASEURL; ?>/oidc/rp/<?php echo $DOMAIN; ?>/authz/<?php echo base64_encode('http://trust-anchor.org:8000'); ?>/<?php echo base64_encode('http://trust-anchor.org:8000/oidc/op'); ?>?state=Namirial"><span class="spid-sr-only">Namirial ID</span><img src="<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-namirialid.svg" onerror="this.src='<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-namirialid.png'; this.onerror=null;" alt="Namirial ID" /></a>
</li>
<li class="spid-idp-button-link" data-idp="posteid">
<a href="<?php echo $BASEURL; ?>/oidc/rp/<?php echo $DOMAIN; ?>/authz/<?php echo base64_encode('http://trust-anchor.org:8000'); ?>/<?php echo base64_encode('http://trust-anchor.org:8000/oidc/op'); ?>?state=Poste Italiane SpA"><span class="spid-sr-only">Poste ID</span><img src="<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-posteid.svg" onerror="this.src='<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-posteid.png'; this.onerror=null;" alt="Poste ID" /></a>
</li>
<li class="spid-idp-button-link" data-idp="sielteid">
<a href="<?php echo $BASEURL; ?>/oidc/rp/<?php echo $DOMAIN; ?>/authz/<?php echo base64_encode('http://trust-anchor.org:8000'); ?>/<?php echo base64_encode('http://trust-anchor.org:8000/oidc/op'); ?>?state=Sielte S.p.A."><span class="spid-sr-only">Sielte ID</span><img src="<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-sielteid.svg" onerror="this.src='<?php echo $BASEURL; ?>/assets/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="<?php echo $BASEURL; ?>/oidc/rp/<?php echo $DOMAIN; ?>/authz/<?php echo base64_encode('http://trust-anchor.org:8000'); ?>/<?php echo base64_encode('http://trust-anchor.org:8000/oidc/op'); ?>?state=Register.it S.p.A."><span class="spid-sr-only">SPIDItalia Register.it</span><img src="<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-spiditalia.svg" onerror="this.src='<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-spiditalia.png'; this.onerror=null;" alt="SpidItalia" /></a>
</li>
<li class="spid-idp-button-link" data-idp="timid">
<a href="<?php echo $BASEURL; ?>/oidc/rp/<?php echo $DOMAIN; ?>/authz/<?php echo base64_encode('http://trust-anchor.org:8000'); ?>/<?php echo base64_encode('http://trust-anchor.org:8000/oidc/op'); ?>?state=TI Trust Technologies srl"><span class="spid-sr-only">Tim ID</span><img src="<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-timid.svg" onerror="this.src='<?php echo $BASEURL; ?>/assets/spid-sp-access-button/img/spid-idp-timid.png'; this.onerror=null;" alt="Tim ID" /></a>
</li>
-->

What values do we need to enter on every SPID button for pre-production and production?

base64_encode('http://trust-anchor.org:8000');
base64_encode('http://trust-anchor.org:8000/oidc/op');
@unicg unicg changed the title How to get SPID button to work in (pre)production? How to get SPID buttons to work in (pre)production? Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant