Sei un programmatore ?
Per te supporto prioritario, aiuto sul codice, API personalizzate, SMS per sviluppo gratuiti e molto altro.
Scrivici subito

Questa pagina mostra la AuthnRequest reale generata con PHP 8 e SDK ufficiale prima del redirect verso SPID demo.

Identity Provider: https://demo.spid.gov.it
Sorgente richiesta: official-sdk-php81
PHP esterno usato: /opt/php81-spid/bin/php
Redirect finale: https://demo.spid.gov.it/samlsso
RelayState: sdk_d150ed17ce852d1dbc5ccc5afacd3d7e
Request ID: _7e7a7497b049926dcdb94983e005a69addb9633a2a

Query firmata

SAMLRequest=nVNNj9owEP0rke%2BEbGChsQgSBVVFYltKaA%2B9IBMPYCm2U88E2P76dQK0WWmL1L3Fnnl5H3oeodBFyScVHcwKflWAFJx1YZA3g5RVznArUCE3QgNyynk2eVrwOIx46SzZ3BasBbmPEIjgSFnDgvksZZshDMWwnwy3UT9J4oHM5TbpJx96EEWPYpAI6c%2BDXk%2FEggU%2FwKFHpsz%2FyMMRK5gbJGHIX0XxoBMlnfhhHQ149Mh7Dz9ZMPNulBHUoA5EJfJuV4K2IZZKhnt7DBV1a9WIlgWfrMuhSSJl5CpgwdLZo5LgvngjKcuqrSKbPWUsmNx8TK3BSoPLwB1VDt9Xi79Mp9MpxAaDGmsmB3uF5MRvD4RNrWEjcgzLQ9lQNVl%2BVEYqs78f4%2FayhPzzer3sLL9may%2BJyKltRXCR5MdXTXMj4ZyyiI1HtVXeJOeC2tO3ShRqp8D9n2gNJKQgcVHuY9OC7guub5Ts7JpVDoYUPbPxezlH3ZaRi6uS137ms6UtVP78Dk2ezaDyynySRWFPUweC4FqE7o3k%2BkRANjXxSROcKZhaXQqnsK6ZD17pSt%2FCbu9NC1%2F%2FFexe%2B241MfPfi%2Fjq7k3kZfYPHX%2Bm7dc8fgE%3D&RelayState=sdk_d150ed17ce852d1dbc5ccc5afacd3d7e&SigAlg=http%3A%2F%2Fwww.w3.org%2F2001%2F04%2Fxmldsig-more%23rsa-sha256&Signature=SAQl8JD%2F480dN%2FOat7rLmez5ejLqck6jhE4Xp8iTr9raebv8eFJDPHV2CxDm6pjTT1EiNRA5PrQsOGJb8ZWM1kR21zYsM2hgY6pwOAcvISF6smnDVmPQb8KC44F92DtckY3JdcF5w23pEkgOrHzjyYUCRy1ywjoc4VcECz%2FW1r%2FABdEC5vPyzH82gfgChmTmnrBMzGNGuFoo0tugPZLkde9BE2f9uBaeUAK2WsdiaRKxBCLTo9uGvUc6OdrFTJUCJzZZ91sgpQEspId8fQtVNniqrDVsjyCyXY72iNUyTZukuiDpqoHnWqE%2BY9jcq1cSM1yna2ZQeIOYxvlmNYAtLA%3D%3D

AuthnRequest XML

<?xml version="1.0"?>
<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_7e7a7497b049926dcdb94983e005a69addb9633a2a" Version="2.0" IssueInstant="2026-09-21T06:05:31Z" Destination="https://demo.spid.gov.it/samlsso" ForceAuthn="true" ProviderName="SubitoSMS" AssertionConsumerServiceURL="https://www.subitosms.it/registrazione_spid_acs.php" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" AttributeConsumingServiceIndex="0">
  <saml:Issuer NameQualifier="https://www.subitosms.it/registrazione_spid_metadata.php" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">https://www.subitosms.it/registrazione_spid_metadata.php</saml:Issuer>
  <samlp:NameIDPolicy Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient" AllowCreate="true"/>
  <samlp:RequestedAuthnContext Comparison="minimum">
    <saml:AuthnContextClassRef>https://www.spid.gov.it/SpidL2</saml:AuthnContextClassRef>
  </samlp:RequestedAuthnContext>
</samlp:AuthnRequest>

Payload bridge SDK

{
    "ok": true,
    "request_source": "official-sdk-php81-custom-redirect",
    "relay_state": "sdk_d150ed17ce852d1dbc5ccc5afacd3d7e",
    "request_id": "_7e7a7497b049926dcdb94983e005a69addb9633a2a",
    "redirect_url": "https://demo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iDpqoHnWqE%2BY9jcq1cSM1yna2ZQeIOYxvlmNYAtLA%3D%3D",
    "decoded_redirect": {
        "destination_url": "https://demo.spid.gov.it/samlsso",
        "query": "SAMLRequest=nVNNj9owEP0rke%2BEbGChsQgSBVVFYltKaA%2B9IBMPYCm2U88E2P76dQK0WWmL1L3Fnnl5H3oeodBFyScVHcwKflWAFJx1YZA3g5RVznArUCE3QgNyynk2eVrwOIx46SzZ3BasBbmPEIjgSFnDgvksZZshDMWwnwy3UT9J4oHM5TbpJx96EEWPYpAI6c%2BDXk%2FEggU%2FwKFHpsz%2FyMMRK5gbJGHIX0XxoBMlnfhhHQ149Mh7Dz9ZMPNulBHUoA5EJfJuV4K2IZZKhnt7DBV1a9WIlgWfrMuhSSJl5CpgwdLZo5LgvngjKcuqrSKbPWUsmNx8TK3BSoPLwB1VDt9Xi79Mp9MpxAaDGmsmB3uF5MRvD4RNrWEjcgzLQ9lQNVl%2BVEYqs78f4%2FayhPzzer3sLL9may%2BJyKltRXCR5MdXTXMj4ZyyiI1HtVXeJOeC2tO3ShRqp8D9n2gNJKQgcVHuY9OC7guub5Ts7JpVDoYUPbPxezlH3ZaRi6uS137ms6UtVP78Dk2ezaDyynySRWFPUweC4FqE7o3k%2BkRANjXxSROcKZhaXQqnsK6ZD17pSt%2FCbu9NC1%2F%2FFexe%2B241MfPfi%2Fjq7k3kZfYPHX%2Bm7dc8fgE%3D&RelayState=sdk_d150ed17ce852d1dbc5ccc5afacd3d7e&SigAlg=http%3A%2F%2Fwww.w3.org%2F2001%2F04%2Fxmldsig-more%23rsa-sha256&Signature=SAQl8JD%2F480dN%2FOat7rLmez5ejLqck6jhE4Xp8iTr9raebv8eFJDPHV2CxDm6pjTT1EiNRA5PrQsOGJb8ZWM1kR21zYsM2hgY6pwOAcvISF6smnDVmPQb8KC44F92DtckY3JdcF5w23pEkgOrHzjyYUCRy1ywjoc4VcECz%2FW1r%2FABdEC5vPyzH82gfgChmTmnrBMzGNGuFoo0tugPZLkde9BE2f9uBaeUAK2WsdiaRKxBCLTo9uGvUc6OdrFTJUCJzZZ91sgpQEspId8fQtVNniqrDVsjyCyXY72iNUyTZukuiDpqoHnWqE%2BY9jcq1cSM1yna2ZQeIOYxvlmNYAtLA%3D%3D",
        "params": {
            "SAMLRequest": "nVNNj9owEP0rke+EbGChsQgSBVVFYltKaA+9IBMPYCm2U88E2P76dQK0WWmL1L3Fnnl5H3oeodBFyScVHcwKflWAFJx1YZA3g5RVznArUCE3QgNyynk2eVrwOIx46SzZ3BasBbmPEIjgSFnDgvksZZshDMWwnwy3UT9J4oHM5TbpJx96EEWPYpAI6c+DXk/EggU/wKFHpsz/yMMRK5gbJGHIX0XxoBMlnfhhHQ149Mh7Dz9ZMPNulBHUoA5EJfJuV4K2IZZKhnt7DBV1a9WIlgWfrMuhSSJl5CpgwdLZo5LgvngjKcuqrSKbPWUsmNx8TK3BSoPLwB1VDt9Xi79Mp9MpxAaDGmsmB3uF5MRvD4RNrWEjcgzLQ9lQNVl+VEYqs78f4/ayhPzzer3sLL9may+JyKltRXCR5MdXTXMj4ZyyiI1HtVXeJOeC2tO3ShRqp8D9n2gNJKQgcVHuY9OC7guub5Ts7JpVDoYUPbPxezlH3ZaRi6uS137ms6UtVP78Dk2ezaDyynySRWFPUweC4FqE7o3k+kRANjXxSROcKZhaXQqnsK6ZD17pSt/Cbu9NC1//Fexe+241MfPfi/jq7k3kZfYPHX+m7dc8fgE=",
            "RelayState": "sdk_d150ed17ce852d1dbc5ccc5afacd3d7e",
            "SigAlg": "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",
            "Signature": "SAQl8JD/480dN/Oat7rLmez5ejLqck6jhE4Xp8iTr9raebv8eFJDPHV2CxDm6pjTT1EiNRA5PrQsOGJb8ZWM1kR21zYsM2hgY6pwOAcvISF6smnDVmPQb8KC44F92DtckY3JdcF5w23pEkgOrHzjyYUCRy1ywjoc4VcECz/W1r/ABdEC5vPyzH82gfgChmTmnrBMzGNGuFoo0tugPZLkde9BE2f9uBaeUAK2WsdiaRKxBCLTo9uGvUc6OdrFTJUCJzZZ91sgpQEspId8fQtVNniqrDVsjyCyXY72iNUyTZukuiDpqoHnWqE+Y9jcq1cSM1yna2ZQeIOYxvlmNYAtLA=="
        },
        "xml": "<samlp:AuthnRequest xmlns:samlp=\"urn:oasis:names:tc:SAML:2.0:protocol\" xmlns:saml=\"urn:oasis:names:tc:SAML:2.0:assertion\" ID=\"_7e7a7497b049926dcdb94983e005a69addb9633a2a\" Version=\"2.0\" IssueInstant=\"2026-09-21T06:05:31Z\" Destination=\"https://demo.spid.gov.it/samlsso\" ForceAuthn=\"true\" ProviderName=\"SubitoSMS\" AssertionConsumerServiceURL=\"https://www.subitosms.it/registrazione_spid_acs.php\" ProtocolBinding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST\" AttributeConsumingServiceIndex=\"0\"><saml:Issuer NameQualifier=\"https://www.subitosms.it/registrazione_spid_metadata.php\" Format=\"urn:oasis:names:tc:SAML:2.0:nameid-format:entity\">https://www.subitosms.it/registrazione_spid_metadata.php</saml:Issuer><samlp:NameIDPolicy Format=\"urn:oasis:names:tc:SAML:2.0:nameid-format:transient\" AllowCreate=\"true\"/><samlp:RequestedAuthnContext Comparison=\"minimum\"><saml:AuthnContextClassRef>https://www.spid.gov.it/SpidL2</saml:AuthnContextClassRef></samlp:RequestedAuthnContext></samlp:AuthnRequest>",
        "pretty_xml": "<?xml version=\"1.0\"?>\n<samlp:AuthnRequest xmlns:samlp=\"urn:oasis:names:tc:SAML:2.0:protocol\" xmlns:saml=\"urn:oasis:names:tc:SAML:2.0:assertion\" ID=\"_7e7a7497b049926dcdb94983e005a69addb9633a2a\" Version=\"2.0\" IssueInstant=\"2026-09-21T06:05:31Z\" Destination=\"https://demo.spid.gov.it/samlsso\" ForceAuthn=\"true\" ProviderName=\"SubitoSMS\" AssertionConsumerServiceURL=\"https://www.subitosms.it/registrazione_spid_acs.php\" ProtocolBinding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST\" AttributeConsumingServiceIndex=\"0\">\n  <saml:Issuer NameQualifier=\"https://www.subitosms.it/registrazione_spid_metadata.php\" Format=\"urn:oasis:names:tc:SAML:2.0:nameid-format:entity\">https://www.subitosms.it/registrazione_spid_metadata.php</saml:Issuer>\n  <samlp:NameIDPolicy Format=\"urn:oasis:names:tc:SAML:2.0:nameid-format:transient\" AllowCreate=\"true\"/>\n  <samlp:RequestedAuthnContext Comparison=\"minimum\">\n    <saml:AuthnContextClassRef>https://www.spid.gov.it/SpidL2</saml:AuthnContextClassRef>\n  </samlp:RequestedAuthnContext>\n</samlp:AuthnRequest>"
    }
}