go-saml icon indicating copy to clipboard operation
go-saml copied to clipboard

Generates invalid metadata?

Open lpar opened this issue 9 years ago • 1 comments
trafficstars

The generated metadata includes this clause:

 <md:Extensions xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport" xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi">
        <EntityAttributes></EntityAttributes>
    </md:Extensions>

This is flagged as invalid according to the XSD schema when validated using https://www.samltool.com/validate_xml.php

In addition, https://www.testshib.org/ refuses the file as invalid.

If I delete the entire <md:Extensions> element from the generated metadata, the file then validates and is also accepted by testshib.org. Since the element doesn't seem to contain any actual information, I'm guessing it isn't needed.

lpar avatar Mar 21 '16 17:03 lpar

I can confirm this, xml is not valid. Do we really need this <md:Extensions> element?

zetaab avatar Mar 02 '18 07:03 zetaab