Skip to content

Commit

Permalink
Merge pull request #174 from ewedlund/metadata-private-cie
Browse files Browse the repository at this point in the history
fixes #121 metadata CIE private
  • Loading branch information
Giuseppe De Marco authored Feb 7, 2024
2 parents c008edf + b9a78ef commit 83590ac
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/spid_sp_test/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1184,12 +1184,10 @@ def test_profile_cie_sp_public(self):
def test_profile_cie_sp_private(self):
self.test_profile_cie_sp()
self.test_contactperson_email(contact_type="administrative")
self.test_contactperson_email(contact_type="technical")
self.test_extensions_public_private(
ext_type="Private", contact_type="technical"
ext_type="Private", contact_type="administrative"
)
self.test_Contacts_PubPriv(contact_type="administrative")
self.test_Contacts_PubPriv(contact_type="technical")
self.test_extensions_cie(ext_type="Private")

def test_profile_ficep_eidas_sp(self):
Expand Down
118 changes: 118 additions & 0 deletions tests/metadata/private-sp-cie-double-contacts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:cie="https://www.cartaidentita.interno.gov.it/saml-extensions" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" entityID="https://entityidsp"><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="">
<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>En0Org5Fqh8UkLf+F2VS4ZulQ2fybVDFnLlEdXPMEyY=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>bKWaO2/N+0sGAYSMupp3Cc6Jyr17SmeFikXXqFT9lxiHv1FZtsBmcqO5/7azkV6W
N5yN7BMPsJGf3LwIUeqBLoUZLDRDdnR4XPrBp1oeVufD/6gwzsknkDS5yOw/WcGw
ncDac7o3Y55zQnE8VXCdt2dBWvGAAFrrDVj6na1A0A/mYPTBsCAf2LwHxiA0InQX
jmTzFC6MjcD+Ew3hm0yYhmQLRrV50f/g0Ie14zQZjZwV2ryZcjgJRN/ZEN5BGt/S
xqT5p0FcA87mIBxxzpRb63/9OUo/+1kohpB45onPYbtQ/gO3TnTWcxcdyrHj6SR1
VGO5n+XxD5hjHvmDgJra8w==</ds:SignatureValue>
<ds:KeyInfo>
<ds:KeyValue>
<ds:RSAKeyValue>
<ds:Modulus>
ryQlWj66BGttu/3GFcK5WuqLgHv8xDNBzrahzCUUW6Mk13ibWZeRQcVuC/CFGRCq
jYMCYV4eLAKQlPcrV55cgWE0UWugTMY/M43J6QumM2+ZgizUIW+KsY6PRuQSIZoo
Sz7+6bMaPEiHLklCWpcT3rLX4jOnZCEmKYMrT8o2KPwjVvPGx4/RiBzhIW94pL7t
A74+svNaSURYYyzgMzllzdVEruDgtY9ZmEp0iYLWudL7+USYdK8eKx1Wn8Mm1tKt
nBJhNG9NPPkhkNKriQDOsN+mPXqHtve3ecUZzxShjZGji1FndqEnavdvv3IroLmm
FjsIAA25beAN2FWOIE1izQ==
</ds:Modulus>
<ds:Exponent>
AQAB
</ds:Exponent>
</ds:RSAKeyValue>
</ds:KeyValue>
<ds:X509Data>
<ds:X509Certificate>
MIIGNjCCBJ6gAwIBAgIUSVvDzxN0sIzjdCPHYH6K6uSkWg4wDQYJKoZIhvcNAQELBQAwgY8xJDAi
BgNVBAoMG0EgQ29tcGFueSBNYWtpbmcgRXZlcnl0aGluZzEQMA4GA1UEAwwHQS5DLk0uRTEdMBsG
A1UEUwwUaHR0cHM6Ly9zcGlkLmF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G
BitMEAQDATAcMBoGCCsGAQUFBwICMA4MDGNlcnRfU1BfUHJpdjAdBgNVHQ4EFgQUCxnmbMGfcmtG
WzADVF4mymLCJawwgc8GA1UdIwSBxzCBxIAUCxnmbMGfcmtGWzADVF4mymLCJayhgZWkgZIwgY8x
JDAiBgNVBAoMG0EgQ29tcGFueSBNYWtpbmcgRXZlcnl0aGluZzEQMA4GA1UEAwwHQS5DLk0uRTEd
MBsGA1UEUwwUaHR0cHM6Ly9zcGlkLmFjbWUuaXQxGjAYBgNVBGEMEVZBVElULTEyMzQ1Njc4OTAx
MQswCQYDVQQGEwJJVDENMAsGA1UEBwwEUm9tYYIUSVvDzxN0sIzjdCPHYH6K6uSkWg4wDQYJKoZI
hvcNAQELBQADggGBAGfdn5Wc2/nqDS5qYubrXTgAnVH4dmz0Y5hcHmwfcyI5Z/6QgPdwNPBwLA53
TJODYMAe2caDiPW4EzYfBGQrLqCnSdtGBtNigepVJrFjj1uMzjLo7QPROAnlLkBNQPsia7yGZoEZ
ZEmQFX1zCJCtPihRoCpVoWuGl6egy7+N6857xCQvq0A1QgvQYHslsQ/mT6c2OdDB1XKVtA6oDO3j
fgxMDhmcQloQRq3u5zS0vaxXFX9J6VrqrcaCfXBXmVZwAIQO/RhAx0zCyO0XeVg6muLr9m390hll
g4OvcPAnsx4fsjyxRyYBnmNi1f2rkJPT4l8HN8TRwNBP3QHqyIKvWDtl7Spd4SGFgJjN/x9YwxIM
lkl8bf8Wu++5+6EwbZl0jlZq2HBAtMAp6lDSU8hgHj0MjCRiAeW9Jo/RYas137oJkBCkQ6yTJrRc
6qmNbE5qiCtX2k454xQv9g7HUWnQDbYEEZNTi4GABfne0x+UC1U4VuqXCxlP3BNEaC+KCq4OEw==
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<md:SPSSODescriptor AuthnRequestsSigned="true" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<md:KeyDescriptor use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AMBAf8wDQYJKoZIhvcNAQELBQADggEBAJNFqXg/V3aimJKUmUaqmQEEoSc3qvXFITvT5f5bKw9yk/NVhR6wndL+z/24h1OdRqs76blgH8k116qWNkkDtt0AlSjQOx5qvFYh1UviOjNdRI4WkYONSw+vuavcx+fB6O5JDHNmMhMySKTnmRqTkyhjrch7zaFIWUSV7hsBuxpqmrWDoLWdXbV3eFH3mINA5AoIY/m0bZtzZ7YNgiFWzxQgekpxd0vcTseMnCcXnsAlctdir0FoCZztxMuZjlBjwLTtM6Ry3/48LMM8Z+lw7NMciKLLTGQyU8XmKKSSOh0dGh5Lrlt5GxIIJkH81C0YimWebz8464QPL3RbLnTKg+c=</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</md:KeyDescriptor>
<md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://url_esempio_SLO_Redirect"/>
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://url_esempio_POST" index="0" isDefault="true"/>
<md:AttributeConsumingService index="0">
<md:ServiceName xml:lang="">urn:uuid:86eabbc2-6023-4f8d-a7dc-22401f5ac4fe</md:ServiceName>
<md:RequestedAttribute Name="name"/>
<md:RequestedAttribute Name="familyName"/>
<md:RequestedAttribute Name="dateOfBirth"/>
<md:RequestedAttribute Name="fiscalNumber"/>
</md:AttributeConsumingService>
</md:SPSSODescriptor>
<md:Organization>
<md:OrganizationName xml:lang="it">Service Provider Privato s.r.l.</md:OrganizationName>
<md:OrganizationDisplayName xml:lang="it">SPP</md:OrganizationDisplayName>
<md:OrganizationURL xml:lang="it">https://www.esempio_sp_privato.it</md:OrganizationURL>
</md:Organization>
<md:ContactPerson contactType="administrative">
<md:Extensions>
<cie:Private/>
<cie:VATNumber>IT01234567890</cie:VATNumber>
<cie:FiscalCode>9876543210</cie:FiscalCode>
<cie:NACE2Code>CODICE_ATECO</cie:NACE2Code>
<cie:Municipality>CODICE_ISTAT</cie:Municipality>
</md:Extensions>
<md:Company>Service Provider Privato s.r.l.</md:Company>
<md:EmailAddress>[email protected]</md:EmailAddress>
<md:TelephoneNumber>+39061234567</md:TelephoneNumber>
</md:ContactPerson>
<md:ContactPerson contactType="technical">
<md:Extensions>
<cie:Private/>
<cie:VATNumber>IT09876543210</cie:VATNumber>
<cie:FiscalCode>0123456789</cie:FiscalCode>
<cie:NACE2Code>CODICE_ATECO</cie:NACE2Code>
<cie:Municipality>CODICE_ISTAT</cie:Municipality>
</md:Extensions>
<md:Company>Gestore Tecnico s.r.l.</md:Company>
<md:EmailAddress>[email protected]</md:EmailAddress>
<md:TelephoneNumber>+39061234567</md:TelephoneNumber>
</md:ContactPerson>
</md:EntityDescriptor>
80 changes: 80 additions & 0 deletions tests/metadata/private-sp-cie.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:cie="https://www.cartaidentita.interno.gov.it/saml-extensions" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" entityID="https://entityidsp">
<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="">
<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>DWWcu/rP+Yay8cKKJ8BNP4AU3VlT7xLwLFQKzd8iZeI=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>NNVfD15SOxBqpGZJT9pk9rqwNXdR5RinPjEELYZASPVDFHvOKtl8lMDKz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nmbMGfcmtGWzADVF4mymLCJayhgZWkgZIwgY8x JDAiBgNVBAoMG0EgQ29tcGFueSBNYWtpbmcgRXZlcnl0aGluZzEQMA4GA1UEAwwHQS5DLk0uRTEd MBsGA1UEUwwUaHR0cHM6Ly9zcGlkLmFjbWUuaXQxGjAYBgNVBGEMEVZBVElULTEyMzQ1Njc4OTAx MQswCQYDVQQGEwJJVDENMAsGA1UEBwwEUm9tYYIUSVvDzxN0sIzjdCPHYH6K6uSkWg4wDQYJKoZI hvcNAQELBQADggGBAGfdn5Wc2/nqDS5qYubrXTgAnVH4dmz0Y5hcHmwfcyI5Z/6QgPdwNPBwLA53 TJODYMAe2caDiPW4EzYfBGQrLqCnSdtGBtNigepVJrFjj1uMzjLo7QPROAnlLkBNQPsia7yGZoEZ ZEmQFX1zCJCtPihRoCpVoWuGl6egy7+N6857xCQvq0A1QgvQYHslsQ/mT6c2OdDB1XKVtA6oDO3j fgxMDhmcQloQRq3u5zS0vaxXFX9J6VrqrcaCfXBXmVZwAIQO/RhAx0zCyO0XeVg6muLr9m390hll g4OvcPAnsx4fsjyxRyYBnmNi1f2rkJPT4l8HN8TRwNBP3QHqyIKvWDtl7Spd4SGFgJjN/x9YwxIM lkl8bf8Wu++5+6EwbZl0jlZq2HBAtMAp6lDSU8hgHj0MjCRiAeW9Jo/RYas137oJkBCkQ6yTJrRc 6qmNbE5qiCtX2k454xQv9g7HUWnQDbYEEZNTi4GABfne0x+UC1U4VuqXCxlP3BNEaC+KCq4OEw==
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<md:SPSSODescriptor AuthnRequestsSigned="true" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<md:KeyDescriptor use="signing">
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>MIIGJjCCBI6gAwIBAgIUMklhbI+QvAScRTRPLPSFxK4xW2swDQYJKoZIhvcNAQELBQAwgYoxJDAiBgNVBAoMG0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rTBAGMBgwFgYIKwYBBQUHAgIwCgwIYWdJRGNlcnQwJQYGK0wQBAIBMBswGQYIKwYBBQUHAgIwDQwLY2VydF9TUF9QdWIwHQYDVR0OBBYEFA1XOzRYkNZZ4BWS1YwfZZk8rjs7MIHKBgNVHSMEgcIwgb+AFA1XOzRYkNZZ4BWS1YwfZZk8rjs7oYGQpIGNMIGKMSQwIgYDVQQKDBtBIENvbXBhbnkgTWFraW5nIEV2ZXJ5dGhpbmcxEDAOBgNVBAMMB0EuQy5NLkUxHTAbBgNVBFMMFGh0dHBzOi8vc3BpZC5hY21lLml0MRUwEwYDVQRhDAxQQTpJVC1jX2g1MDExCzAJBgNVBAYTAklUMQ0wCwYDVQQHDARSb21hghQySWFsj5C8BJxFNE8s9IXErjFbazANBgkqhkiG9w0BAQsFAAOCAYEAb9F68mVHfSvKp5V8NmVBQqDu0ZE2YC7vPQ696WqWWDP7AMB67MtzraLi1FyUeKTCJL2An93cYsXdhzeM53jCkwMh0JYuvc3P3AQV8/07QbNHugbiqBqkU4XQ4spmP4eNf338dVw6xGBIjZBHvfCMhmM/etSOsjRftk2d/2iwV31PvwGutWz9muAcIOEmr34f/cXQafIfunAo0hvG56esO40LOYDR42/EqxLe+s4pzr677c7q9MjII9WSllzJm5DwWSw7CNibfI5w54RfCyUfDXYPx3pa1VcPOMyjbZ/D/efrakBF/iFnH9KpV2m9kNTgqyX88rJpBZvL0R35w+fUNREQRHObpvcwUdZrak2dAlWXtBbIjnAb1/DW6IICrEWoGhFIi0YSaU7xklS6KDi1JF8iU3a7BIm72xRXpEydcpgksDewO4gXTYpy8A/FRYek5CE1ed9omoO/nX81bkYit5SN7K4T8XyT6t3F/BnHcdAN1pqQ+sjFIHgp385BWN+P</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</md:KeyDescriptor>
<md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://url_esempio_SLO_Redirect"/>
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://url_esempio_POST" index="0" isDefault="true"/>
<md:AttributeConsumingService index="0">
<md:ServiceName xml:lang="">urn:uuid:86eabbc2-6023-4f8d-a7dc-22401f5ac4fe</md:ServiceName>
<md:RequestedAttribute Name="name"/>
<md:RequestedAttribute Name="familyName"/>
<md:RequestedAttribute Name="dateOfBirth"/>
<md:RequestedAttribute Name="fiscalNumber"/>
</md:AttributeConsumingService>
</md:SPSSODescriptor>
<md:Organization>
<md:OrganizationName xml:lang="it">Service Provider Privato s.r.l.</md:OrganizationName>
<md:OrganizationDisplayName xml:lang="it">SPP</md:OrganizationDisplayName>
<md:OrganizationURL xml:lang="it">https://www.esempio_sp_privato.it</md:OrganizationURL>
</md:Organization>
<md:ContactPerson contactType="administrative">
<md:Extensions>
<cie:Private/>
<cie:VATNumber>IT01234567890</cie:VATNumber>
<cie:FiscalCode>9876543210</cie:FiscalCode>
<cie:NACE2Code>CODICE_ATECO</cie:NACE2Code>
<cie:Municipality>CODICE_ISTAT</cie:Municipality>
</md:Extensions>
<md:Company>Service Provider Privato s.r.l.</md:Company>
<md:EmailAddress>[email protected]</md:EmailAddress>
<md:TelephoneNumber>+39061234567</md:TelephoneNumber>
</md:ContactPerson>
</md:EntityDescriptor>
10 changes: 10 additions & 0 deletions tests/test_01_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ def test_public_cie_sp():
assert es == 0


def test_private_cie_sp():
es = run_cmd(f'{DIR}/private-sp-cie.xml --profile cie-sp-private')
assert es == 0


def test_private_cie_two_contacts_sp():
es = run_cmd(f'{DIR}/private-sp-cie-double-contacts.xml --profile cie-sp-private')
assert es == 0


def test_public_ficep_sp():
es = run_cmd(f'{DIR}/public-sp-eidas_signed.xml --profile ficep-eidas-sp')
assert es == 0

0 comments on commit 83590ac

Please sign in to comment.