X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fbinding%2Fimpl%2FSAML2ECPEncoder.cpp;h=90ea516fc2b44bbc083416c7fe7c0b691273d702;hp=2cddf29e6cb8f95084bf1775899d20a3029c69e2;hb=07dbbcf3a8fc0aba6fefe741f1760442a0a6ea65;hpb=30060a96ad3a0a97d8a51328c92faa64f4302049 diff --git a/saml/saml2/binding/impl/SAML2ECPEncoder.cpp b/saml/saml2/binding/impl/SAML2ECPEncoder.cpp index 2cddf29..90ea516 100644 --- a/saml/saml2/binding/impl/SAML2ECPEncoder.cpp +++ b/saml/saml2/binding/impl/SAML2ECPEncoder.cpp @@ -127,6 +127,7 @@ long SAML2ECPEncoder::encode( genericResponse.setContentType(request ? "application/vnd.paos+xml" : "text/xml"); HTTPResponse* httpResponse = dynamic_cast(&genericResponse); if (httpResponse) { + httpResponse->setResponseHeader("Expires", "01-Jan-1997 12:00:00 GMT"); httpResponse->setResponseHeader("Cache-Control", "no-cache, no-store, must-revalidate, private"); httpResponse->setResponseHeader("Pragma", "no-cache"); } @@ -140,8 +141,8 @@ long SAML2ECPEncoder::encode( body->getUnknownXMLObjects().push_back(xmlObject); ElementProxy* hdrblock; - QName qMU(SOAP11ENV_NS, Header::MUSTUNDERSTAND_ATTRIB_NAME, SOAP11ENV_PREFIX); - QName qActor(SOAP11ENV_NS, Header::ACTOR_ATTRIB_NAME, SOAP11ENV_PREFIX); + xmltooling::QName qMU(SOAP11ENV_NS, Header::MUSTUNDERSTAND_ATTRIB_NAME, SOAP11ENV_PREFIX); + xmltooling::QName qActor(SOAP11ENV_NS, Header::ACTOR_ATTRIB_NAME, SOAP11ENV_PREFIX); if (request) { // Create paos:Request header. @@ -150,8 +151,8 @@ long SAML2ECPEncoder::encode( hdrblock = dynamic_cast(m_anyBuilder.buildObject(PAOS_NS, saml1p::Request::LOCAL_NAME, PAOS_PREFIX)); hdrblock->setAttribute(qMU, XML_ONE); hdrblock->setAttribute(qActor, m_actor.get()); - hdrblock->setAttribute(QName(NULL, service), SAML20ECP_NS); - hdrblock->setAttribute(QName(NULL, responseConsumerURL), request->getAssertionConsumerServiceURL()); + hdrblock->setAttribute(xmltooling::QName(NULL, service), SAML20ECP_NS); + hdrblock->setAttribute(xmltooling::QName(NULL, responseConsumerURL), request->getAssertionConsumerServiceURL()); header->getUnknownXMLObjects().push_back(hdrblock); // Create ecp:Request header. @@ -160,9 +161,9 @@ long SAML2ECPEncoder::encode( hdrblock->setAttribute(qMU, XML_ONE); hdrblock->setAttribute(qActor, m_actor.get()); if (!request->IsPassive()) - hdrblock->setAttribute(QName(NULL,IsPassive), XML_ZERO); + hdrblock->setAttribute(xmltooling::QName(NULL,IsPassive), XML_ZERO); if (m_providerName) - hdrblock->setAttribute(QName(NULL,ProviderName), m_providerName); + hdrblock->setAttribute(xmltooling::QName(NULL,ProviderName), m_providerName); hdrblock->getUnknownXMLObjects().push_back(request->getIssuer()->clone()); if (request->getScoping() && request->getScoping()->getIDPList()) hdrblock->getUnknownXMLObjects().push_back(request->getScoping()->getIDPList()->clone()); @@ -175,7 +176,7 @@ long SAML2ECPEncoder::encode( hdrblock = dynamic_cast(m_anyBuilder.buildObject(SAML20ECP_NS, Response::LOCAL_NAME, SAML20ECP_PREFIX)); hdrblock->setAttribute(qMU, XML_ONE); hdrblock->setAttribute(qActor, m_actor.get()); - hdrblock->setAttribute(QName(NULL,AuthnRequest::ASSERTIONCONSUMERSERVICEURL_ATTRIB_NAME), response->getDestination()); + hdrblock->setAttribute(xmltooling::QName(NULL,AuthnRequest::ASSERTIONCONSUMERSERVICEURL_ATTRIB_NAME), response->getDestination()); header->getUnknownXMLObjects().push_back(hdrblock); }