title: SAML 2.0 SP metadata
body: <p><br>
  I am implementing an SP initiated web browser SAML SSO profile.<br>
  My application is the SP. <br>
  The customers ask me to supply them a metadata file.<br>
  I have a Shibboleth metadata file I used for testing my application against a local Shibboleth IDP server.<br>
  Now, When I sent this file to a non-Shibboleth customer, he said that this file is a Shibboleth file and he needs a different one.<br>
  My question is:<br></p>
  
  <p>Is there a standard SP metadata file I can use which will fit all customers, no matter what IDP they are using?<br></p>
  
  <p>I found an example:<br></p>
  
  <pre><code>&lt;md:EntityDescriptor 
     xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" 
     ID="_z7b6d339da96016iib0ed98ed476er3d7ae4dct5" 
     entityID="https://my.application.sp/login"&gt;
    &lt;md:SPSSODescriptor AuthnRequestsSigned="false" 
        WantAssertionsSigned="true"
        protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"&gt;  
      &lt;md:KeyDescriptor use="signing"&gt;  
       &lt;ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;  
        &lt;ds:X509Data&gt;  
          &lt;ds:X509SubjectName&gt;CN=my.application.sp&lt;/ds:X509SubjectName&gt;
          &lt;ds:X509Certificate&gt;--my certificate--&lt;/ds:X509Certificate&gt;  
        &lt;/ds:X509Data&gt;  
       &lt;/ds:KeyInfo&gt;  
     &lt;/md:KeyDescriptor&gt;  
     &lt;md:KeyDescriptor use="encryption"&gt;  
       &lt;ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;  
         &lt;ds:X509Data&gt;  
           &lt;ds:X509Certificate&gt;--my certificate--&lt;/ds:X509Certificate&gt;  
        &lt;/ds:X509Data&gt;  
      &lt;/ds:KeyInfo&gt;  
    &lt;/md:KeyDescriptor&gt;  
    &lt;md:NameIDFormat&gt;urn:oasis:names:tc:SAML:2.0:nameid-format:transient&lt;/md:NameIDFormat&gt;  
    &lt;md:AssertionConsumerService 
        Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"    
        Location="https://my.application.sp/handleLogin" index="0"/&gt;
    &lt;/md:SPSSODescriptor&gt;  
  &lt;/md:EntityDescriptor&gt; 
  </code></pre>
  
  <p>Is this enough?<br>
  Can I use this as a general metadata for all the IDPs?</p>
  
  <p>Thanks</p>