title: SimpleSAMLphp Cannot retrieve metadata for IdP 'http://simpleidp/simplesaml/saml2/idp/metadata.php' because it isn't a valid IdP for this SP
body: <p>I'm stuck with error simplesamlPHP
      SimpleSAML_Error_Error: UNHANDLEDEXCEPTION
      Backtrace:
      0 /var/www/simplesp/www/module.php:180 (N/A)
      Caused by: SimpleSAML_Error_Exception: Cannot retrieve metadata for IdP '<a href="http://URLIDP/simplesaml/saml2/idp/metadata.php" rel="nofollow noreferrer">http://URLIDP/simplesaml/saml2/idp/metadata.php</a>' because it isn't a valid IdP for this SP.
      Backtrace:
      2 /var/www/simplesp/modules/saml/lib/Auth/Source/SP.php:112 (sspmod_saml_Auth_Source_SP::getIdPMetadata)
      1 /var/www/simplesp/modules/saml/www/sp/saml2-acs.php:91 (require)
      0 /var/www/simplesp/www/module.php:137 (N/A)</p>
  
  <p>Config for me with SP :</p>
  
  <pre><code>/var/www/simplesp/metadata/saml20-idp-remote.php
  
  $metadata['URLIDP'] = array(
      'SingleSignOnService'  =&gt; 'URLIDP/simplesaml/saml2/idp/SSOService.php',
      'SingleLogoutService'  =&gt; 'URLIDP/simplesaml/saml2/idp/SingleLogoutService.php',
      'certFingerprint'      =&gt; 'c9ed4dfb07caf13fc21e0fec1572047eb8a7a4cb'
  );
  </code></pre>
  
  <p>Config for me with Idp :
  /var/www/simpleidp/metadata/saml20-sp-remote.php</p>
  
  <pre><code>$metadata['URLSP/simplesaml/module.php/saml/sp/metadata.php/default-sp'] = array(
      'SingleLogoutService' =&gt;
          array(
              0 =&gt;
                  array(
                      'Binding' =&gt; 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
                      'Location' =&gt; 'URLSP/simplesaml/module.php/saml/sp/saml2-logout.php/default-sp',
                  ),
          ),
      'AssertionConsumerService' =&gt;
          array(
              0 =&gt;
                  array(
                      'index' =&gt; 0,
                      'Binding' =&gt; 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
                      'Location' =&gt; 'URLSP/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp',
                  ),
              1 =&gt;
                  array(
                      'index' =&gt; 1,
                      'Binding' =&gt; 'urn:oasis:names:tc:SAML:1.0:profiles:browser-post',
                      'Location' =&gt; 'URLSP/simplesaml/module.php/saml/sp/saml1-acs.php/default-sp',
                  ),
              2 =&gt;
                  array(
                      'index' =&gt; 2,
                      'Binding' =&gt; 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact',
                      'Location' =&gt; 'URLSP/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp',
                  ),
              3 =&gt;
                  array(
                      'index' =&gt; 3,
                      'Binding' =&gt; 'urn:oasis:names:tc:SAML:1.0:profiles:artifact-01',
                      'Location' =&gt; 'URLSP/simplesaml/module.php/saml/sp/saml1-acs.php/default-sp/artifact',
                  ),
          ),
  
  );
  </code></pre>
  
  <p>Can help me resolve problem ?</p>