Projet

Général

Profil

0001-move-tag-Extensions-in-metadata-template-fixes-21923.patch

Benjamin Dauvergne, 16 février 2018 09:55

Télécharger (1,68 ko)

Voir les différences:

Subject: [PATCH] move tag Extensions in metadata template (fixes #21923)

Current template does not validate the SAML 2.0 metadata schema.
 mellon/templates/mellon/metadata.xml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
mellon/templates/mellon/metadata.xml
6 6
   AuthnRequestsSigned="true"
7 7
   WantAssertionsSigned="true"
8 8
   protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
9
    <Extensions>
10
      <idpdisc:DiscoveryResponse index="1"
11
        xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
12
        Binding="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
13
        Location="{{ discovery_endpoint_url }}"/>
14
   </Extensions>
9 15
     {% for public_key in public_keys %}
10 16
       <KeyDescriptor>
11 17
           <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
......
15 21
           </ds:KeyInfo>
16 22
       </KeyDescriptor>
17 23
    {% endfor %}
18
    <Extensions>
19
      <idpdisc:DiscoveryResponse index="1"
20
        xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
21
        Binding="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
22
        Location="{{ discovery_endpoint_url }}"/>
23
   </Extensions>
24 24
   <SingleLogoutService
25 25
     Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
26 26
     Location="{{ logout_url }}" />
27
-