Collapse entity/role lookup in metadata API.
[shibboleth/opensaml2.git] / samltest / saml2 / binding / SAML2RedirectTest.h
index 862d75d..6c4ba21 100644 (file)
@@ -65,7 +65,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();