<div dir="ltr">There is a decent chance that I've just plain messed something up in my config, but...late last week I was getting responses from the testshib idp through my SP SSO process.  Then I messed with configs, and started getting <div><br></div><div><strong style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">Error Message: SAML 2 SSO profile is not configured for relying party</strong><br></div><div><br></div><div>So I started over with my config, and tried to go step by step.  I have brought the testshib idp metadata into my simplesamlphp installation, and configured it through the saml20-idp-remote.php (see below).</div><div><br></div><div>I have also configured the authsources.php to configure my SP's use of the testshib IDP (see below), and exported this metadata, registering it with the testshib IDP.  My entity ID for my SP is <a href="https://idtest.com/sspsaml25">https://idtest.com/sspsaml25</a>.  It shows up on the entities list.  When I try to hit the SSO service at <a href="https://idp.testshib.org/idp/profile/SAML2/POST/SSO">https://idp.testshib.org/idp/profile/SAML2/POST/SSO</a>, I get the message </div><div><br></div><div>Error Message: SAML 2 SSO profile is not configured for relying party <a href="https://idtest.com/sspsaml25">https://idtest.com/sspsaml25</a><br></div><div><br></div><div>I understand that the message probably means something is wrong with my metadata, but the logs say that testshib can't find the metadata for my entity - not that there is an error in the process.  And the entity is listed.  When I tried modifying the SP metadata to include a SSO service that simplephp wasn't using, I got a different error, which seems to tell me that the metadata is found, but not matched in some way.</div><div><br></div><div>Am I missing something simple?  Any help is very much appreciated.</div><div><br></div><div>saml20-idp-remote.php:</div><div><br></div><div><div><font face="monospace, monospace"><?php</font></div><div><font face="monospace, monospace">$metadata['<a href="https://idp.testshib.org/idp/shibboleth">https://idp.testshib.org/idp/shibboleth</a>'] = array (</font></div><div><font face="monospace, monospace">    'entityid' => '<a href="https://idp.testshib.org/idp/shibboleth">https://idp.testshib.org/idp/shibboleth</a>',</font></div><div><font face="monospace, monospace">    'description' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            'en' => 'TestShib Two Identity Provider',</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'OrganizationName' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            'en' => 'TestShib Two Identity Provider',</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'name' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            'en' => 'TestShib Test IdP',</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'OrganizationDisplayName' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            'en' => 'TestShib Two',</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'url' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            'en' => '<a href="http://www.testshib.org/testshib-two/">http://www.testshib.org/testshib-two/</a>',</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'OrganizationURL' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            'en' => '<a href="http://www.testshib.org/testshib-two/">http://www.testshib.org/testshib-two/</a>',</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'contacts' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            0 =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                    'contactType' => 'technical',</font></div><div><font face="monospace, monospace">                    'givenName' => 'Nate',</font></div><div><font face="monospace, monospace">                    'surName' => 'Klingenstein',</font></div><div><font face="monospace, monospace">                    'emailAddress' =></font></div><div><font face="monospace, monospace">                        array (</font></div><div><font face="monospace, monospace">                            0 => '<a href="mailto:ndk@internet2.edu">ndk@internet2.edu</a>',</font></div><div><font face="monospace, monospace">                        ),</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'metadata-set' => 'saml20-idp-remote',</font></div><div><font face="monospace, monospace">    'SingleSignOnService' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            0 =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                    'Binding' => 'urn:mace:shibboleth:1.0:profiles:AuthnRequest',</font></div><div><font face="monospace, monospace">                    'Location' => '<a href="https://idp.testshib.org/idp/profile/Shibboleth/SSO">https://idp.testshib.org/idp/profile/Shibboleth/SSO</a>',</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">            1 =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                    'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',</font></div><div><font face="monospace, monospace">                    'Location' => '<a href="https://idp.testshib.org/idp/profile/SAML2/POST/SSO">https://idp.testshib.org/idp/profile/SAML2/POST/SSO</a>',</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">            2 =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                    'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',</font></div><div><font face="monospace, monospace">                    'Location' => '<a href="https://idp.testshib.org/idp/profile/SAML2/Redirect/SSO">https://idp.testshib.org/idp/profile/SAML2/Redirect/SSO</a>',</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">            3 =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                    'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP',</font></div><div><font face="monospace, monospace">                    'Location' => '<a href="https://idp.testshib.org/idp/profile/SAML2/SOAP/ECP">https://idp.testshib.org/idp/profile/SAML2/SOAP/ECP</a>',</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'SingleLogoutService' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'ArtifactResolutionService' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            0 =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                    'Binding' => 'urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding',</font></div><div><font face="monospace, monospace">                    'Location' => '<a href="https://idp.testshib.org:8443/idp/profile/SAML1/SOAP/ArtifactResolution">https://idp.testshib.org:8443/idp/profile/SAML1/SOAP/ArtifactResolution</a>',</font></div><div><font face="monospace, monospace">                    'index' => 1,</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">            1 =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                    'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP',</font></div><div><font face="monospace, monospace">                    'Location' => '<a href="https://idp.testshib.org:8443/idp/profile/SAML2/SOAP/ArtifactResolution">https://idp.testshib.org:8443/idp/profile/SAML2/SOAP/ArtifactResolution</a>',</font></div><div><font face="monospace, monospace">                    'index' => 2,</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'NameIDFormats' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            0 => 'urn:mace:shibboleth:1.0:nameIdentifier',</font></div><div><font face="monospace, monospace">            1 => 'urn:oasis:names:tc:SAML:2.0:nameid-format:transient',</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'keys' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            0 =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                    'encryption' => true,</font></div><div><font face="monospace, monospace">                    'signing' => true,</font></div><div><font face="monospace, monospace">                    'type' => 'X509Certificate',</font></div><div><font face="monospace, monospace">                    'X509Certificate' => '[removed for brevity]',</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'scope' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            0 => '<a href="http://testshib.org">testshib.org</a>',</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">    'UIInfo' =></font></div><div><font face="monospace, monospace">        array (</font></div><div><font face="monospace, monospace">            'DisplayName' =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                    'en' => 'TestShib Test IdP',</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">            'Description' =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                    'en' => 'TestShib IdP. Use this as a source of attributes for your test SP.',</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">            'InformationURL' =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">            'PrivacyStatementURL' =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">            'Logo' =></font></div><div><font face="monospace, monospace">                array (</font></div><div><font face="monospace, monospace">                    0 =></font></div><div><font face="monospace, monospace">                        array (</font></div><div><font face="monospace, monospace">                            'url' => '<a href="https://www.testshib.org/testshibtwo.jpg">https://www.testshib.org/testshibtwo.jpg</a>',</font></div><div><font face="monospace, monospace">                            'height' => 88,</font></div><div><font face="monospace, monospace">                            'width' => 253,</font></div><div><font face="monospace, monospace">                        ),</font></div><div><font face="monospace, monospace">                ),</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">);</font></div><div><font face="monospace, monospace">?></font></div></div><div><br></div><div><br></div><div>authsources.php</div><div><br></div><div><br></div><div><div><font face="monospace, monospace"><?php</font></div><div><font face="monospace, monospace">$config = array(</font></div><div><font face="monospace, monospace">    'shibsaml' => array(<br></font></div><div><font face="monospace, monospace">        'saml:SP',</font></div><div><font face="monospace, monospace">        'name' => array(</font></div><div><font face="monospace, monospace">            'en' => 'TestShib',</font></div><div><font face="monospace, monospace">            'no' => 'TestShib',</font></div><div><font face="monospace, monospace">        ),</font></div><div><font face="monospace, monospace">        'entityID' => '<a href="https://idtest.com/sspsaml25">https://idtest.com/sspsaml25</a>',<br></font></div><div><font face="monospace, monospace">        'idp' => '<a href="https://idp.testshib.org/idp/shibboleth">https://idp.testshib.org/idp/shibboleth</a>',<br></font></div><div><font face="monospace, monospace">        'discoURL' => null,<br></font></div><div><font face="monospace, monospace">        'signature.algorithm' => '<a href="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256">http://www.w3.org/2001/04/xmldsig-more#rsa-sha256</a>',<br></font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">   </span>'privatekey' => 'saml.pem',<br></font></div><div><font face="monospace, monospace">    <span class="" style="white-space:pre">      </span>'certificate' => 'saml.crt',</font></div><div><font face="monospace, monospace">    ),</font></div><div><font face="monospace, monospace">);</font></div></div><div><br></div><div>SP metadata:</div><div><br></div><div><div><font face="monospace, monospace"><?xml version="1.0"?></font></div><div><font face="monospace, monospace"><md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:ds="<a href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>" entityID="<a href="https://idtest.com/sspsaml25">https://idtest.com/sspsaml25</a>"></font></div><div><font face="monospace, monospace">  <md:SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:1.1:protocol urn:oasis:names:tc:SAML:2.0:protocol"></font></div><div><font face="monospace, monospace">    <md:KeyDescriptor use="signing"></font></div><div><font face="monospace, monospace">      <ds:KeyInfo xmlns:ds="<a href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>"></font></div><div><font face="monospace, monospace">        <ds:X509Data></font></div><div><font face="monospace, monospace">          <ds:X509Certificate>[removed for brevity]</ds:X509Certificate></font></div><div><font face="monospace, monospace">        </ds:X509Data></font></div><div><font face="monospace, monospace">      </ds:KeyInfo></font></div><div><font face="monospace, monospace">    </md:KeyDescriptor></font></div><div><font face="monospace, monospace">    <md:KeyDescriptor use="encryption"></font></div><div><font face="monospace, monospace">      <ds:KeyInfo xmlns:ds="<a href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>"></font></div><div><font face="monospace, monospace">        <ds:X509Data></font></div><div><font face="monospace, monospace">          <ds:X509Certificate>[removed for brevity]</ds:X509Certificate></font></div><div><font face="monospace, monospace">        </ds:X509Data></font></div><div><font face="monospace, monospace">      </ds:KeyInfo></font></div><div><font face="monospace, monospace">    </md:KeyDescriptor></font></div><div><font face="monospace, monospace">    <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="<a href="http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml2-logout.php/shibsaml">http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml2-logout.php/shibsaml</a>"/></font></div><div><font face="monospace, monospace">    <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="<a href="http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml2-logout.php/shibsaml">http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml2-logout.php/shibsaml</a>"/></font></div><div><font face="monospace, monospace">    <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="<a href="http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml2-acs.php/shibsaml">http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml2-acs.php/shibsaml</a>" index="0"/></font></div><div><font face="monospace, monospace">    <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:browser-post" Location="<a href="http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml1-acs.php/shibsaml">http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml1-acs.php/shibsaml</a>" index="1"/></font></div><div><font face="monospace, monospace">    <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="<a href="http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml2-acs.php/shibsaml">http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml2-acs.php/shibsaml</a>" index="2"/></font></div><div><font face="monospace, monospace">    <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:artifact-01" Location="<a href="http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml1-acs.php/shibsaml/artifact">http://family.parentpermit.com/simplesaml/module.php/saml/sp/saml1-acs.php/shibsaml/artifact</a>" index="3"/></font></div><div><font face="monospace, monospace">  </md:SPSSODescriptor></font></div><div><font face="monospace, monospace">  <md:ContactPerson contactType="technical"></font></div><div><font face="monospace, monospace">    <md:GivenName>IT</md:GivenName></font></div><div><font face="monospace, monospace">    <md:SurName>Director</md:SurName></font></div><div><font face="monospace, monospace">    <md:EmailAddress><a href="mailto:itdirector@isafe.org">itdirector@isafe.org</a></md:EmailAddress></font></div><div><font face="monospace, monospace">  </md:ContactPerson></font></div><div><font face="monospace, monospace"></md:EntityDescriptor></font></div></div><div><br></div><div><br></div><div>IDP log section:</div><div><br></div><div><div><font face="monospace, monospace">02:05:28.445 - INFO [Shibboleth-Access:73] - 20150706T060528Z|50.81.16.78|idp.testshib.org:443|/profile/SAML2/POST/SSO|</font></div><div><font face="monospace, monospace">02:05:28.446 - DEBUG [edu.internet2.middleware.shibboleth.idp.profile.IdPProfileHandlerManager:86] - shibboleth.HandlerManager: Looking up profile handler for request path: /SAML2/POST/SSO</font></div><div><font face="monospace, monospace">02:05:28.446 - DEBUG [edu.internet2.middleware.shibboleth.idp.profile.IdPProfileHandlerManager:97] - shibboleth.HandlerManager: Located profile handler of the following type for the request path: edu.internet2.middleware.shibboleth.idp.profile.saml2.SSOProfileHandler</font></div><div><font face="monospace, monospace">02:05:28.446 - DEBUG [edu.internet2.middleware.shibboleth.idp.util.HttpServletHelper:339] - LoginContext key cookie was not present in request</font></div><div><font face="monospace, monospace">02:05:28.446 - DEBUG [edu.internet2.middleware.shibboleth.idp.profile.saml2.SSOProfileHandler:188] - Incoming request does not contain a login context, processing as first leg of request</font></div><div><font face="monospace, monospace">02:05:28.446 - DEBUG [edu.internet2.middleware.shibboleth.idp.profile.saml2.SSOProfileHandler:366] - Decoding message with decoder binding 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST'</font></div><div><font face="monospace, monospace">02:05:28.449 - DEBUG [edu.internet2.middleware.shibboleth.common.relyingparty.provider.SAMLMDRelyingPartyConfigurationManager:128] - Looking up relying party configuration for <a href="https://idtest.com/sspsaml25">https://idtest.com/sspsaml25</a></font></div><div><font face="monospace, monospace">02:05:28.450 - DEBUG [edu.internet2.middleware.shibboleth.common.relyingparty.provider.SAMLMDRelyingPartyConfigurationManager:134] - No custom relying party configuration found for <a href="https://idtest.com/sspsaml25">https://idtest.com/sspsaml25</a>, looking up configuration based on metadata groups.</font></div><div><font face="monospace, monospace">02:05:28.450 - DEBUG [edu.internet2.middleware.shibboleth.common.relyingparty.provider.SAMLMDRelyingPartyConfigurationManager:157] - No custom or group-based relying party configuration found for <a href="https://idtest.com/sspsaml25">https://idtest.com/sspsaml25</a>. Using default relying party configuration.</font></div><div><font face="monospace, monospace">02:05:28.450 - WARN [org.opensaml.saml2.binding.security.SAML2AuthnRequestsSignedRule:81] - SPSSODescriptor role metadata for entityID '<a href="https://idtest.com/sspsaml25">https://idtest.com/sspsaml25</a>' could not be resolved</font></div><div><font face="monospace, monospace">02:05:28.450 - DEBUG [edu.internet2.middleware.shibboleth.idp.profile.saml2.SSOProfileHandler:387] - Decoded request from relying party '<a href="https://idtest.com/sspsaml25">https://idtest.com/sspsaml25</a>'</font></div><div><font face="monospace, monospace">02:05:28.451 - WARN [edu.internet2.middleware.shibboleth.idp.profile.AbstractSAMLProfileHandler:305] - No metadata for relying party <a href="https://idtest.com/sspsaml25">https://idtest.com/sspsaml25</a>, treating party as anonymous</font></div><div><font face="monospace, monospace">02:05:28.451 - WARN [edu.internet2.middleware.shibboleth.idp.profile.saml2.SSOProfileHandler:222] - SAML 2 SSO profile is not configured for relying party <a href="https://idtest.com/sspsaml25">https://idtest.com/sspsaml25</a></font></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZ2Rlc21hcmFpc0Bpc2FmZS5vcmc%3D&type=zerocontent&guid=80d6f847-c05d-4ef4-80ec-b02ca24fc996"><font color="#ffffff" size="1">ᐧ</font></div></div>