More aggressive about populating issuer.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Sun, 13 Mar 2005 06:29:50 +0000 (06:29 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Sun, 13 Mar 2005 06:29:50 +0000 (06:29 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1390 cb58f699-b61c-0410-a6fe-9272a202ed29

shib/ShibBrowserProfile.cpp

index 92f6e40..3504ec8 100644 (file)
@@ -126,9 +126,11 @@ SAMLBrowserProfile::BrowserProfileResponse ShibBrowserProfile::receive(
 
     // No metadata at all.
     if (!provider) {
+        if (pIssuer)
+            *pIssuer=XMLString::replicate(bpr.assertion->getIssuer());
         auto_ptr_char issuer(bpr.assertion->getIssuer());
         auto_ptr_char nq(bpr.authnStatement->getSubject()->getNameIdentifier()->getNameQualifier());
-        log.error("assertion issuer not found in metadata (Issuer='%s', NameQualifier='%s'",
+        log.error("assertion issuer not found in metadata (Issuer='%s', NameQualifier='%s')",
             issuer.get(), (nq.get() ? nq.get() : "null"));
         bpr.clear();
         throw MetadataException("ShibBrowserProfile::receive() metadata lookup failed, unable to process assertion");