projects
/
shibboleth
/
cpp-opensaml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
932cfaa
)
Move policy execution above the destination check.
author
Scott Cantor
<cantor.2@osu.edu>
Mon, 5 Feb 2007 16:05:21 +0000
(16:05 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Mon, 5 Feb 2007 16:05:21 +0000
(16:05 +0000)
saml/saml2/binding/impl/SAML2POSTDecoder.cpp
patch
|
blob
|
history
diff --git
a/saml/saml2/binding/impl/SAML2POSTDecoder.cpp
b/saml/saml2/binding/impl/SAML2POSTDecoder.cpp
index
414e24b
..
5f763f5
100644
(file)
--- a/
saml/saml2/binding/impl/SAML2POSTDecoder.cpp
+++ b/
saml/saml2/binding/impl/SAML2POSTDecoder.cpp
@@
-113,6
+113,9
@@
XMLObject* SAML2POSTDecoder::decode(
if (!m_validate)
SchemaValidators.validate(xmlObject.get());
+
+ // Run through the policy.
+ policy.evaluate(*root, &genericRequest);
// Check destination URL.
auto_ptr_char dest(request ? request->getDestination() : response->getDestination());
@@
-126,7
+129,5
@@
XMLObject* SAML2POSTDecoder::decode(
throw BindingException("SAML message delivered with POST to incorrect server URL.");
}
- // Run through the policy.
- policy.evaluate(*root, &genericRequest);
return xmlObject.release();
}