X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml1%2Fbinding%2Fimpl%2FSAML1MessageRule.cpp;h=b54a12c25663f07589056a9fe71b06ab98260fb8;hp=3d70d87a6607e6fe195778324ca198c7b1083c9a;hb=01d4a70f0b95b2bac5a0d66e6fe87f4640433b90;hpb=6b5c75d27994ca1f9d450a81576a1bde4873edf3 diff --git a/saml/saml1/binding/impl/SAML1MessageRule.cpp b/saml/saml1/binding/impl/SAML1MessageRule.cpp index 3d70d87..b54a12c 100644 --- a/saml/saml1/binding/impl/SAML1MessageRule.cpp +++ b/saml/saml1/binding/impl/SAML1MessageRule.cpp @@ -53,17 +53,18 @@ void SAML1MessageRule::evaluate(const XMLObject& message, const GenericRequest* const QName& q = message.getElementQName(); policy.setMessageQName(&q); + + if (!XMLString::equals(q.getNamespaceURI(), samlconstants::SAML1P_NS)) { + log.debug("not a SAML 1.x protocol message"); + return; + } + try { const RootObject& samlRoot = dynamic_cast(message); policy.setMessageID(samlRoot.getID()); policy.setIssueInstant(samlRoot.getIssueInstantEpoch()); - if (!XMLString::equals(q.getNamespaceURI(), samlconstants::SAML1P_NS)) { - log.warn("not a SAML 1.x protocol message"); - throw BindingException("Message was not a recognized SAML 1.x protocol element."); - } - log.debug("extracting issuer from message"); // Only samlp:Response is known to carry issuer (via payload) in standard SAML 1.x.