Clarify error messages.
authorcantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Mon, 17 Dec 2007 21:05:37 +0000 (21:05 +0000)
committercantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Mon, 17 Dec 2007 21:05:37 +0000 (21:05 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/trunk@357 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0

saml/saml1/binding/impl/SAML1ArtifactDecoder.cpp
saml/saml1/binding/impl/SAML1POSTDecoder.cpp
saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp
saml/saml2/binding/impl/SAML2POSTDecoder.cpp
saml/saml2/binding/impl/SAML2RedirectDecoder.cpp

index cbaf9a5..e24dda1 100644 (file)
@@ -82,7 +82,7 @@ XMLObject* SAML1ArtifactDecoder::decode(
     vector<const char*> SAMLart;
     const char* TARGET = httpRequest->getParameter("TARGET");
     if (httpRequest->getParameters("SAMLart", SAMLart)==0 || !TARGET)
-        throw BindingException("Request missing SAMLart or TARGET parameters.");
+        throw BindingException("Request missing SAMLart or TARGET query string parameters.");
     relayState = TARGET;
 
     if (!m_artifactResolver || !policy.getMetadataProvider() || !policy.getRole())
index 92a28b7..0e60ffd 100644 (file)
@@ -84,7 +84,7 @@ XMLObject* SAML1POSTDecoder::decode(
     const char* samlResponse = httpRequest->getParameter("SAMLResponse");
     const char* TARGET = httpRequest->getParameter("TARGET");
     if (!samlResponse || !TARGET)
-        throw BindingException("Request missing SAMLResponse or TARGET parameters.");
+        throw BindingException("Request missing SAMLResponse or TARGET form parameters.");
     relayState = TARGET;
 
     // Decode the base64 into SAML.
index cb83ce7..c5f9209 100644 (file)
@@ -80,7 +80,7 @@ XMLObject* SAML2ArtifactDecoder::decode(
         throw BindingException("Unable to cast request object to HTTPRequest type.");
     const char* SAMLart = httpRequest->getParameter("SAMLart");
     if (!SAMLart)
-        throw BindingException("Request missing SAMLart parameter.");
+        throw BindingException("Request missing SAMLart query string or form parameter.");
     const char* state = httpRequest->getParameter("RelayState");
     if (state)
         relayState = state;
index 5438199..1898c4b 100644 (file)
@@ -84,7 +84,7 @@ XMLObject* SAML2POSTDecoder::decode(
     if (!msg)
         msg = httpRequest->getParameter("SAMLRequest");
     if (!msg)
-        throw BindingException("Request missing SAMLRequest or SAMLResponse parameter.");
+        throw BindingException("Request missing SAMLRequest or SAMLResponse form parameter.");
     const char* state = httpRequest->getParameter("RelayState");
     if (state)
         relayState = state;
index b43589c..ff0f5f7 100644 (file)
@@ -86,7 +86,7 @@ XMLObject* SAML2RedirectDecoder::decode(
     if (!msg)
         msg = httpRequest->getParameter("SAMLRequest");
     if (!msg)
-        throw BindingException("Request missing SAMLRequest or SAMLResponse parameter.");
+        throw BindingException("Request missing SAMLRequest or SAMLResponse query string parameter.");
     const char* state = httpRequest->getParameter("RelayState");
     if (state)
         relayState = state;