Collapse entity/role lookup in metadata API.
[shibboleth/opensaml2.git] / samltest / saml1 / binding / SAML1POSTTest.h
index 611da59..39941e7 100644 (file)
@@ -74,7 +74,13 @@ public:
 
             Locker locker(m_metadata);
             encoder->encode(
-                *this,toSend.get(),"https://sp.example.org/SAML/SSO",m_metadata->getEntityDescriptor("https://sp.example.org/"),"state",NULL,cred
+                *this,
+                toSend.get(),
+                "https://sp.example.org/SAML/SSO",
+                m_metadata->getEntityDescriptor(MetadataProvider::Criteria("https://sp.example.org/")).first,
+                "state",
+                NULL,
+                cred
                 );
             toSend.release();