X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fhandler%2Fimpl%2FSAML2Logout.cpp;h=cde5cbbafbee182c4b55d691d7e39527cca5e8eb;hb=c51bfd77603cf0ddb0b5e374c35586a8435895d6;hp=19f3d7efaaef3693aabd25cc91c552012a069e4a;hpb=b6cfd9b692438c4d23b3e8083d474c8a3d225ba5;p=shibboleth%2Fcpp-sp.git diff --git a/shibsp/handler/impl/SAML2Logout.cpp b/shibsp/handler/impl/SAML2Logout.cpp index 19f3d7e..cde5cbb 100644 --- a/shibsp/handler/impl/SAML2Logout.cpp +++ b/shibsp/handler/impl/SAML2Logout.cpp @@ -146,7 +146,7 @@ namespace shibsp { }; SAML2Logout::SAML2Logout(const DOMElement* e, const char* appId) - : AbstractHandler(e, Category::getInstance(SHIBSP_LOGCAT".Logout.SAML2")) + : AbstractHandler(e, Category::getInstance(SHIBSP_LOGCAT ".Logout.SAML2")) #ifndef SHIBSP_LITE ,m_protocol(samlconstants::SAML20P_NS) #endif @@ -174,6 +174,7 @@ SAML2Logout::SAML2Logout(const DOMElement* e, const char* appId) pair outgoing = getString("outgoingBindings", m_configNS.get()); if (outgoing.first) { dupBindings = outgoing.second; + trim(dupBindings); } else { // No override, so we'll install a default binding precedence. @@ -354,7 +355,9 @@ pair SAML2Logout::doRequest(const Application& application, const HTT // If we get here, it's an external protocol message to decode. // Locate policy key. - pair policyId = getString("policyId", m_configNS.get()); // namespace-qualified if inside handler element + pair policyId = getString("policyId", m_configNS.get()); // may be namespace-qualified inside handler element + if (!policyId.first) + policyId = getString("policyId"); // try unqualified if (!policyId.first) policyId = application.getString("policyId"); // unqualified in Application(s) element