Projet

Général

Profil

Bug #1285

Metadata namespace definition

Ajouté par Arnaud Maillet il y a environ 12 ans. Mis à jour il y a presque 6 ans.

Statut:
Rejeté
Priorité:
Bas
Assigné à:
-
Catégorie:
-
Version cible:
Début:
29 février 2012
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Planning:

Description

Hello guys,

I retrieved the SAML metadata of my authentic IDP server there :

http://server:8000/authsaml2/metadata

I can't import it in another authentic SP server because ns0 and ns1 namespaces are not defined. I don't know if it's normal or not but to fix this I must put the definition of these namespaces in the metadata like this :

xmlns:ns0="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:ns1="http://www.w3.org/2000/09/xmldsig#"

What do you think about it ? Is it normal, did I miss something ?

Regards,

Historique

#1

Mis à jour par Mikaël Ates il y a environ 12 ans

The URL of the IdP metadata is /idp/saml2/metadata, of the SP, /authsaml2/metadata.

We have a look to the namespaces.

Regards.

#2

Mis à jour par Benjamin Dauvergne il y a environ 12 ans

Looking at metadata produced by authentic2 on www.identity-hub.com, i.e. the urls:

http://www.identity-hub.com/authsaml2/metadata
http://www.identity-hub.com/idp/saml2/metadata

I do not see any missing namespace. So for now I'm not able to confirm this bug, could you post the metadata files retrieved with curl or wget for example ?

#3

Mis à jour par Arnaud Maillet il y a environ 12 ans

url : http://localhost:8000/idp/saml2/metadata

content :
<ns0:EntityDescriptor entityID="http://localhost:8000/idp/saml2/metadata">
<ns0:IDPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<ns0:KeyDescriptor>
<ns1:KeyInfo>
<ns1:X509Data>
<ns1:X509Certificate>MIIDIzCCAgugAwIBAgIJANUBoick1pDpMA0GCSqGSIb3DQEBBQUAMBUxEzARBgNV
BAoTCkVudHJvdXZlcnQwHhcNMTAxMjE0MTUzMzAyWhcNMTEwMTEzMTUzMzAyWjAV
MRMwEQYDVQQKEwpFbnRyb3V2ZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEAvxFkfPdndlGgQPDZgFGXbrNAc/79PULZBuNdWFHDD9P5hNhZn9Kqm4Cp
06Pe/A6u+g5wLnYvbZQcFCgfQAEzziJtb3J55OOlB7iMEI/T2AX2WzrUH8QT8NGh
ABONKU2Gg4XiyeXNhH5R7zdHlUwcWq3ZwNbtbY0TVc+n665EbrfV/59xihSqsoFr
kmBLH0CoepUXtAzA7WDYn8AzusIuMx3n8844pJwgxhTB7Gjuboptlz9Hri8JRdXi
VT9OS9Wt69ubcNoM6zuKASmtm48UuGnhj8v6XwvbjKZrL9kA+xf8ziazZfvvw/VG
Tm+IVFYB7d1x457jY5zjjXJvNysoowIDAQABo3YwdDAdBgNVHQ4EFgQUeF8ePnu0
fcAK50iBQDgAhHkOu8kwRQYDVR0jBD4wPIAUeF8ePnu0fcAK50iBQDgAhHkOu8mh
GaQXMBUxEzARBgNVBAoTCkVudHJvdXZlcnSCCQDVAaInJNaQ6TAMBgNVHRMEBTAD
AQH/MA0GCSqGSIb3DQEBBQUAA4IBAQAy8l3GhUtpPHx0FxzbRHVaaUSgMwYKGPhE
IdGhqekKUJIx8et4xpEMFBl5XQjBNq/mp5vO3SPb2h2PVSks7xWnG3cvEkqJSOeo
fEEhkqnM45b2MH1S5uxp4i8UilPG6kmQiXU2rEUBdRk9xnRWos7epVivTSIv1Ncp
lG6l41SXp6YgIb2ToT+rOKdIGIQuGDlzeR88fDxWEU0vEujZv/v1PE1YOV0xKjTT
JumlBc6IViKhJeo1wiBBrVRIIkKKevHKQzteK8pWm9CYWculxT26TZ4VWzGbo06j
o2zbumirrLLqnt1gmBDvDvlOwC/zAAyL4chbz66eQHTiIYZZvYgy
</ns1:X509Certificate>
</ns1:X509Data>
</ns1:KeyInfo>
</ns0:KeyDescriptor>
<ns0:ArtifactResolutionService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="http://localhost:8000/idp/saml2/artifact" index="1"/>
<ns0:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="http://localhost:8000/idp/saml2/slo" ResponseLocation="http://localhost:8000/idp/saml2/slo_return"/>
<ns0:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="http://localhost:8000/idp/saml2/slo" ResponseLocation="http://localhost:8000/idp/saml2/slo_return"/>
<ns0:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="http://localhost:8000/idp/saml2/slo/soap"/><ns0:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="http://localhost:8000/idp/saml2/sso"/><ns0:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="http://localhost:8000/idp/saml2/sso"/></ns0:IDPSSODescriptor></ns0:EntityDescriptor>

When I import this metadata file in another instance of authentic, I have some "lasso" errors because ns0 and ns1 are not defined. To resolve this I add this in the metadata :

xmlns:ns0="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:ns1="http://www.w3.org/2000/09/xmldsig#"

Regards,

#4

Mis à jour par Benjamin Dauvergne il y a environ 12 ans

Could you report your python version (just launch python to see it) and
the version of element-tree (the library we use to generat the metadata
file) using this command:

python -c 'import xml.etree.ElementTree; print xml.etree.ElementTree.VERSION'
#5

Mis à jour par Mikaël Ates il y a environ 12 ans

Could you also make a little check. Do you copy paste from what your browser display or do you save the file before import ? Because sometimes the browser do not display the namespaces, e.g. firefox, namespaces that you can see with ctrl+u.

#6

Mis à jour par Arnaud Maillet il y a environ 12 ans

It's firefox's fault, when I display the source ns1 and ns0 are well defined. Thank you I didn't know this firefox feature :(.

Regards.

Thanks

#7

Mis à jour par Benjamin Dauvergne il y a environ 12 ans

  • Statut changé de Nouveau à 7

Great ! I can close with the « not a bug » resolution.

#8

Mis à jour par Benjamin Dauvergne il y a presque 6 ans

  • Statut changé de 7 à Rejeté

Formats disponibles : Atom PDF