summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d3326f3)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/branches/REL_2@526
fb386ef7-a10c-0410-8ebf-
fd3f8e989ab0
// Check the type.
auto_ptr<SAML2Artifact> artifact2(dynamic_cast<SAML2Artifact*>(artifact));
if (!artifact2.get()) {
// Check the type.
auto_ptr<SAML2Artifact> artifact2(dynamic_cast<SAML2Artifact*>(artifact));
if (!artifact2.get()) {
- throw BindingException("Artifact binding requires SAML 2.0 artifact.");
+ log.error("wrong artifact type");
+ throw BindingException("Artifact binding requires SAML 2.0 artifact.");
}
log.debug("attempting to determine source of artifact...");
}
log.debug("attempting to determine source of artifact...");
// Now extract details from the payload and check that message.
XMLObject* payload = response->getPayload();
// Now extract details from the payload and check that message.
XMLObject* payload = response->getPayload();
+ if (!payload) {
+ log.error("ArtifactResponse message did not contain a protocol message");
throw BindingException("ArtifactResponse message did not contain a protocol message.");
throw BindingException("ArtifactResponse message did not contain a protocol message.");
extractMessageDetails(*payload, genericRequest, samlconstants::SAML20P_NS, policy);
policy.evaluate(*payload, &genericRequest);
extractMessageDetails(*payload, genericRequest, samlconstants::SAML20P_NS, policy);
policy.evaluate(*payload, &genericRequest);