X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=blobdiff_plain;f=shibsp%2Fhandler%2Fimpl%2FSAML2LogoutInitiator.cpp;h=400989cd43b60138002d19f67c40c188f1013082;hp=ff813d3d6be7e90cbee084f3bf1fd11cad057355;hb=392d1448deb48beb75f219532ac248b4776f16db;hpb=45ea389225c3c7cb86c16337a94192b239e2c0f3 diff --git a/shibsp/handler/impl/SAML2LogoutInitiator.cpp b/shibsp/handler/impl/SAML2LogoutInitiator.cpp index ff813d3..400989c 100644 --- a/shibsp/handler/impl/SAML2LogoutInitiator.cpp +++ b/shibsp/handler/impl/SAML2LogoutInitiator.cpp @@ -404,10 +404,12 @@ LogoutRequest* SAML2LogoutInitiator::buildRequest( const Application& application, const Session& session, const RoleDescriptor& role, const MessageEncoder* encoder ) const { + const PropertySet* relyingParty = application.getRelyingParty(dynamic_cast(role.getParent())); + auto_ptr msg(LogoutRequestBuilder::buildLogoutRequest()); Issuer* issuer = IssuerBuilder::buildIssuer(); msg->setIssuer(issuer); - issuer->setName(application.getXMLString("entityID").second); + issuer->setName(relyingParty->getXMLString("entityID").second); auto_ptr_XMLCh index(session.getSessionIndex()); if (index.get() && *index.get()) { SessionIndex* si = SessionIndexBuilder::buildSessionIndex(); @@ -416,7 +418,6 @@ LogoutRequest* SAML2LogoutInitiator::buildRequest( } const NameID* nameid = session.getNameID(); - const PropertySet* relyingParty = application.getRelyingParty(dynamic_cast(role.getParent())); pair flag = relyingParty->getString("encryption"); if (flag.first && (!strcmp(flag.second, "true") || (encoder && !strcmp(flag.second, "front")) || (!encoder && !strcmp(flag.second, "back")))) {