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

Test [28] Elemento Issuer mancante. Risultato atteso: KO: [http status_code: 200] #45

Open
matfur92 opened this issue Jun 11, 2021 · 0 comments

Comments

@matfur92
Copy link

Here the response that I have from spid-sp-test that invalidate the test:

<?xml version="1.0"?>
<samlp:Response xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" Destination="https://domain:port/acs" ID="_gkbjgnnj-audp-qkxg-hrhz-urwbbfdlzpwf" InResponseTo="_51d9fe737e48786bb9b6" IssueInstant="2021-06-11T16:11:25.049Z" Version="2.0">
    
    
    
    <ds:Signature>
        <ds:SignedInfo>
            <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
            <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
            <ds:Reference URI="#_gkbjgnnj-audp-qkxg-hrhz-urwbbfdlzpwf">
                <ds:Transforms>
                    <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
                    <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                </ds:Transforms>
                <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
                    <ds:DigestValue>h40gaDx5AKwbHvKpRnMFjhDytscE/IGBJnpW0FTmOlE=</ds:DigestValue>
            </ds:Reference>
        </ds:SignedInfo>
        <ds:SignatureValue>NIf1E+4itn0Y0r1m6uhkxf3911epKr+Yo02+49mnePQc7htmKwLxWT/lEjmP0NA1
73cqKV61XNQXc+V0jWC1FpHlOydRzK+GIG2mdVLtycuntumAPXPNPUty/Al/FBrk
hEQ8BIltALHGRY8Kk+tgrJmLjscGNwrguE5ko6sJlgGyRKynSts9QJuTtdM1CavM
P39msWmUdqvhUbVTMFSz1Yd4Wn2px67TSQoYr6NUDWZpRFQX4KMxeyo/jqNwy6s7
s8QxeH5XlGOGXg4SfoYWppjJO4msN1tSK0pSrcxAjswME96fmIYH2Jp71ccvaHYC
ErAgNTdlJrdDJC5rLzv+TA==</ds:SignatureValue>
    </ds:Signature>
    
    <samlp:Status><samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/></samlp:Status>
    
    
    <saml:Assertion xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="_kdlefuvz-fvbl-iqrd-dvth-ojrwsegvcckt" IssueInstant="2021-06-11T16:11:25.049Z" Version="2.0">
    
        
        
    <ds:Signature>
        <ds:SignedInfo>
            <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
            <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
            <ds:Reference URI="#_kdlefuvz-fvbl-iqrd-dvth-ojrwsegvcckt">
                <ds:Transforms>
                    <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
                    <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                </ds:Transforms>
                <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
                    <ds:DigestValue>IQPlQG/Rzng2wkPBhD2qyiK7FsVs6a/Vlol9hwZ6u4M=</ds:DigestValue>
            </ds:Reference>
        </ds:SignedInfo>
        <ds:SignatureValue>3LGoer27r7FhK9V3d+wRUb9N3trr/Qx8lvOVtzUKgzzm83fa9wKOwO6+RYEQKPIR
8oxBzu5NIL+eYoO8iAOD3dSxO0ZgbfScyqxJxv+lS8Vf2t4EZJtLrU76DG7AiXA2
fSYXPMuVcCDln31hOWfeMKo8Em+p4F+Z5PZUV4W8Zi2Xm6NTDY7jp+w1FWkLaxhi
7yO4T88vEdnJhYBPKHFG+xSbmiTO/WObBqlLkr/FYwA0A+cgdL71EHffpiBdG44K
S5CncnoEKyLeg0JPi7NNoVcPBjc0iA6jBRshAbaEj8hV04n7AxK98ETcqLYVKB4i
c1bbTGw5clE1NCzIEkMfoQ==</ds:SignatureValue>
    </ds:Signature>
        
        <saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">https://idpdomain:port</saml:Issuer>
        
        <saml:Subject>
            
            <saml:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient" NameQualifier="https://idpdomain:port">
                    that-transient-opaque-value
            </saml:NameID>
            
            
            <saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
                <saml:SubjectConfirmationData InResponseTo="_51d9fe737e48786bb9b6" NotOnOrAfter="2021-06-11T16:16:27Z" Recipient="https://domain:port/acs"/>
            </saml:SubjectConfirmation>
            
        </saml:Subject>
        
        
        <saml:Conditions NotBefore="2021-06-11T16:11:25.049Z" NotOnOrAfter="2021-06-11T16:16:27Z">
            
            <saml:AudienceRestriction>
                <saml:Audience>https://dev.euronovate.com</saml:Audience>
            </saml:AudienceRestriction>
            
        </saml:Conditions>
        
        
        <saml:AuthnStatement AuthnInstant="2021-06-11T16:11:27Z" SessionIndex="_qrurcrvr-bqnb-xpdm-rchm-ecjrwpsvabmw">
            
            <saml:AuthnContext>
                <saml:AuthnContextClassRef>https://www.spid.gov.it/SpidL1</saml:AuthnContextClassRef>
            </saml:AuthnContext>
            
        </saml:AuthnStatement>
        
        
        <saml:AttributeStatement>
            
    <saml:Attribute Name="spidCode">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">AGID-001</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="name">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">SpidValidator</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="familyName">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">AgID</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="placeOfBirth">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Roma</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="countyOfBirth">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">RM</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="dateOfBirth">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:date">2000-01-01</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="gender">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">M</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="companyName">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Agenzia per l'Italia Digitale</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="companyFiscalNumber">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">TINIT-GDASDV00A01H501J</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="registeredOffice">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Via Listz 21 00144 Roma</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="fiscalNumber">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">TINIT-GDASDV00A01H501J</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="ivaCode">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">VATIT-97735020584</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="idCard">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">CartaIdentit&#xE0; AA00000000 ComuneRoma 2018-01-01 2028-01-01</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="expirationDate">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:date">2028-01-01</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="mobilePhone">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">+393331234567</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="email">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">[email protected]</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="address">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Via Listz 21 00144 Roma</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="digitalAddress">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">[email protected]</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="domicileStreetAddress">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Via Listz 21</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="domicilePostalCode">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">00144</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="domicileMunicipality">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Roma</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="domicileProvince">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">RM</saml:AttributeValue>
    </saml:Attribute>

    <saml:Attribute Name="domicileNation">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">IT</saml:AttributeValue>
    </saml:Attribute>
        </saml:AttributeStatement>
        
    </saml:Assertion>
    
</samlp:Response>
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