X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=adfs%2Fadfs.cpp;h=c8f4bdd2596ef7aa71ddc97212683e4b492016b9;hb=774d366fe1303f7cb07b8caa26338ab3c98c7fb7;hp=333249f304ea4204ec53d6069d9f360f5d218092;hpb=8d742a1e1f479f74eafd6f60e21c5f9f329a924b;p=shibboleth%2Fcpp-sp.git diff --git a/adfs/adfs.cpp b/adfs/adfs.cpp index 333249f..c8f4bdd 100644 --- a/adfs/adfs.cpp +++ b/adfs/adfs.cpp @@ -42,7 +42,7 @@ #include #include #include -#include +#include #include #include #include @@ -118,7 +118,7 @@ namespace { { public: ADFSSessionInitiator(const DOMElement* e, const char* appId) - : AbstractHandler(e, Category::getInstance(SHIBSP_LOGCAT".SessionInitiator.ADFS"), nullptr, &m_remapper), m_appId(appId), m_binding(WSFED_NS) { + : AbstractHandler(e, Category::getInstance(SHIBSP_LOGCAT".SessionInitiator.ADFS"), nullptr, &m_remapper), m_appId(appId), m_binding(WSFED_NS) { // If Location isn't set, defer address registration until the setParent call. pair loc = getString("Location"); if (loc.first) { @@ -192,7 +192,7 @@ namespace { #endif }; - class SHIBSP_DLLLOCAL ADFSLogoutInitiator : public AbstractHandler, public LogoutHandler + class SHIBSP_DLLLOCAL ADFSLogoutInitiator : public AbstractHandler, public LogoutInitiator { public: ADFSLogoutInitiator(const DOMElement* e, const char* appId) @@ -221,11 +221,6 @@ namespace { void receive(DDF& in, ostream& out); pair run(SPRequest& request, bool isHandler=true) const; -#ifndef SHIBSP_LITE - const char* getType() const { - return "LogoutInitiator"; - } -#endif const XMLCh* getProtocolFamily() const { return m_binding.get(); } @@ -381,12 +376,11 @@ pair ADFSSessionInitiator::run(SPRequest& request, string& entityID, request.log(SPRequest::SPWarn, "invalid acsIndex property, using default ACS location"); } if (!ACS) { - const vector& endpoints = app.getAssertionConsumerServicesByBinding(m_binding.get()); - if (endpoints.empty()) { + ACS = app.getAssertionConsumerServiceByBinding(WSFED_NS); + if (!ACS) { m_log.error("unable to locate a compatible ACS"); throw ConfigurationException("Unable to locate an ADFS-compatible ACS in the configuration."); } - ACS = endpoints.front(); } }