X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fhandler%2Fimpl%2FSAML2Consumer.cpp;h=cca120e85f4454e96dc052f721559e2ba062b33d;hb=f5d5edeafe98f6322238730ff34ef86dc5220e04;hp=5d544ec955f6d1a3e5e557663ecb25c97d244540;hpb=35f74892a217013b69cf9c69a5d7fbc38be75802;p=shibboleth%2Fcpp-sp.git diff --git a/shibsp/handler/impl/SAML2Consumer.cpp b/shibsp/handler/impl/SAML2Consumer.cpp index 5d544ec..cca120e 100644 --- a/shibsp/handler/impl/SAML2Consumer.cpp +++ b/shibsp/handler/impl/SAML2Consumer.cpp @@ -21,27 +21,29 @@ */ #include "internal.h" -#include "Application.h" -#include "exceptions.h" -#include "ServiceProvider.h" -#include "SessionCache.h" -#include "attribute/Attribute.h" -#include "attribute/filtering/AttributeFilter.h" -#include "attribute/filtering/BasicFilteringContext.h" -#include "attribute/resolver/AttributeExtractor.h" -#include "attribute/resolver/ResolutionContext.h" #include "handler/AssertionConsumerService.h" -#include -#include -#include -#include - -using namespace shibsp; +#ifndef SHIBSP_LITE +# include "exceptions.h" +# include "Application.h" +# include "ServiceProvider.h" +# include "SessionCache.h" +# include "attribute/Attribute.h" +# include "attribute/filtering/AttributeFilter.h" +# include "attribute/filtering/BasicFilteringContext.h" +# include "attribute/resolver/AttributeExtractor.h" +# include "attribute/resolver/ResolutionContext.h" +# include +# include +# include +# include using namespace opensaml::saml2; using namespace opensaml::saml2p; using namespace opensaml::saml2md; using namespace opensaml; +#endif + +using namespace shibsp; using namespace xmltooling; using namespace log4cpp; using namespace std; @@ -57,11 +59,12 @@ namespace shibsp { { public: SAML2Consumer(const DOMElement* e, const char* appId) - : AssertionConsumerService(e, appId, Category::getInstance(SHIBSP_LOGCAT".SAML2")) { + : AssertionConsumerService(e, appId, Category::getInstance(SHIBSP_LOGCAT".SAML2")) { } virtual ~SAML2Consumer() {} private: +#ifndef SHIBSP_LITE string implementProtocol( const Application& application, const HTTPRequest& httpRequest, @@ -69,6 +72,7 @@ namespace shibsp { const PropertySet* settings, const XMLObject& xmlObject ) const; +#endif }; #if defined (_MSC_VER) @@ -82,6 +86,8 @@ namespace shibsp { }; +#ifndef SHIBSP_LITE + string SAML2Consumer::implementProtocol( const Application& application, const HTTPRequest& httpRequest, @@ -420,3 +426,5 @@ string SAML2Consumer::implementProtocol( throw; } } + +#endif