Fix reference to providerId.
[shibboleth/sp.git] / shibsp / handler / impl / SAML2Consumer.cpp
index b63dbb9..d1a0f27 100644 (file)
@@ -315,7 +315,14 @@ string SAML2Consumer::implementProtocol(
     multimap<string,Attribute*> resolvedAttributes;
     AttributeExtractor* extractor = application.getAttributeExtractor();
     if (extractor) {
+        m_log.debug("extracting pushed attributes...");
         Locker extlocker(extractor);
+        try {
+            extractor->extractAttributes(application, policy.getIssuerMetadata(), *ssoName, resolvedAttributes);
+        }
+        catch (exception& ex) {
+            m_log.error("caught exception extracting attributes: %s", ex.what());
+        }
         for (vector<const opensaml::Assertion*>::const_iterator t = tokens.begin(); t!=tokens.end(); ++t) {
             try {
                 extractor->extractAttributes(application, policy.getIssuerMetadata(), *(*t), resolvedAttributes);