#include "internal.h"
#include "exceptions.h"
#include "saml/binding/SAMLArtifact.h"
-#include "saml/binding/ReplayCache.h"
#include "saml1/binding/SAML1ArtifactDecoder.h"
#include "saml2/metadata/Metadata.h"
#include "saml2/metadata/MetadataProvider.h"
#include <log4cpp/Category.hh>
#include <xmltooling/util/NDC.h>
+#include <xmltooling/util/ReplayCache.h>
using namespace opensaml::saml2md;
using namespace opensaml::saml1p;
log.debug("processing encoded artifact (%s)", *raw);
// Check replay.
- ReplayCache* replayCache = SAMLConfig::getConfig().getReplayCache();
+ ReplayCache* replayCache = XMLToolingConfig::getConfig().getReplayCache();
if (replayCache) {
if (!replayCache->check("SAML1Artifact", *raw, time(NULL) + (2*XMLToolingConfig::getConfig().clock_skew_secs))) {
log.error("replay detected of artifact (%s)", *raw);
}
log.debug("attempting to find artifact issuing role...");
- issuer=provider->getRoleDescriptor(*role, SAMLConstants::SAML11_PROTOCOL_ENUM);
+ issuer=provider->getRoleDescriptor(*role, samlconstants::SAML11_PROTOCOL_ENUM);
if (!issuer)
- issuer=provider->getRoleDescriptor(*role, SAMLConstants::SAML10_PROTOCOL_ENUM);
+ issuer=provider->getRoleDescriptor(*role, samlconstants::SAML10_PROTOCOL_ENUM);
if (!issuer || !dynamic_cast<const IDPSSODescriptor*>(issuer)) {
log.error("unable to find compatible SAML role (%s) in metadata", role->toString().c_str());
for_each(artifacts.begin(), artifacts.end(), xmltooling::cleanup<SAMLArtifact>());