[cpp-sp COMMIT] in /branches/REL_2: msi/WiX/MergeModules/OpenSAML-schemas.wxs shibsp/handler/impl/SAML2LogoutInitiato...
noreply at shibboleth.net
noreply at shibboleth.net
Tue Jul 10 14:40:42 EDT 2012
Author: scantor
Date: Tue Jul 10 14:40:42 2012
New Revision: 3728
URL: http://svn.shibboleth.net/view/cpp-sp?rev=3728&view=rev
Log:
https://issues.shibboleth.net/jira/browse/SSPCPP-469
Modified:
branches/REL_2/msi/WiX/MergeModules/OpenSAML-schemas.wxs
branches/REL_2/shibsp/handler/impl/SAML2LogoutInitiator.cpp
Modified: branches/REL_2/msi/WiX/MergeModules/OpenSAML-schemas.wxs
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/msi/WiX/MergeModules/OpenSAML-schemas.wxs?rev=3728&r1=3727&r2=3728&view=diff
==============================================================================
--- branches/REL_2/msi/WiX/MergeModules/OpenSAML-schemas.wxs (original)
+++ branches/REL_2/msi/WiX/MergeModules/OpenSAML-schemas.wxs Tue Jul 10 14:40:42 2012
@@ -179,6 +179,9 @@
</Component>
<Component Id='protocol_ext_thirdparty.xsd' Guid='{EEFDA0C0-F1F4-4C09-82CD-873F037A4296}'>
<File KeyPath='yes' Id='protocol_ext_thirdparty.xsd' Name='sstc-saml-protocol-ext-thirdparty.xsd' />
+ </Component>
+ <Component Id='async_slo_v1.0.xsd' Guid='{C3209C47-3F6D-4C20-B004-C85DDC4AD7E7}'>
+ <File KeyPath='yes' Id='async_slo_v1.0.xsd' Name='saml-async-slo-v1.0.xsd' />
</Component>
</Directory><!-- opensaml -->
<Directory Id='xmltooling' Name='xmltooling' FileSource='$(var.SPBuildDirectory)\cpp-xmltooling\schemas\' >
Modified: branches/REL_2/shibsp/handler/impl/SAML2LogoutInitiator.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/handler/impl/SAML2LogoutInitiator.cpp?rev=3728&r1=3727&r2=3728&view=diff
==============================================================================
--- branches/REL_2/shibsp/handler/impl/SAML2LogoutInitiator.cpp (original)
+++ branches/REL_2/shibsp/handler/impl/SAML2LogoutInitiator.cpp Tue Jul 10 14:40:42 2012
@@ -101,6 +101,7 @@
return e;
}
+ bool m_async;
vector<string> m_bindings;
map< string,boost::shared_ptr<MessageEncoder> > m_encoders;
#endif
@@ -119,6 +120,9 @@
SAML2LogoutInitiator::SAML2LogoutInitiator(const DOMElement* e, const char* appId)
: AbstractHandler(e, Category::getInstance(SHIBSP_LOGCAT".LogoutInitiator.SAML2")), m_appId(appId), m_protocol(samlconstants::SAML20P_NS)
+#ifndef SHIBSP_LITE
+ ,m_async(true)
+#endif
{
// If Location isn't set, defer initialization until the setParent call.
pair<bool,const char*> loc = getString("Location");
@@ -146,6 +150,9 @@
#ifndef SHIBSP_LITE
if (SPConfig::getConfig().isEnabled(SPConfig::OutOfProcess)) {
+ pair<bool,bool> async = getBool("asynchronous");
+ m_async = !async.first || async.second;
+
string dupBindings;
pair<bool,const char*> outgoing = getString("outgoingBindings");
if (outgoing.first) {
@@ -523,6 +530,11 @@
msg->setID(SAMLConfig::getConfig().generateIdentifier());
msg->setIssueInstant(time(nullptr));
+ if (m_async) {
+ msg->setExtensions(saml2p::ExtensionsBuilder::buildExtensions());
+ msg->getExtensions()->getUnknownXMLObjects().push_back(AsynchronousBuilder::buildAsynchronous());
+ }
+
return msg;
}
More information about the commits
mailing list