From: Scott Cantor Date: Fri, 20 Aug 2010 01:33:16 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-301 X-Git-Tag: 2.4RC1~65 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=806eac236820059f7422255ef915f941bb32cbf1;hp=ee5b06bf44c3e5ebaa6a053bc98d41a2fa77649e;p=shibboleth%2Fcpp-sp.git https://issues.shibboleth.net/jira/browse/SSPCPP-301 --- diff --git a/shibsp/ServiceProvider.cpp b/shibsp/ServiceProvider.cpp index 538fb2c..0e5b3da 100644 --- a/shibsp/ServiceProvider.cpp +++ b/shibsp/ServiceProvider.cpp @@ -144,6 +144,7 @@ namespace shibsp { void SHIBSP_DLLLOCAL clearHeaders(SPRequest& request) { const Application& app = request.getApplication(); app.clearHeader(request, "Shib-Session-ID", "HTTP_SHIB_SESSION_ID"); + app.clearHeader(request, "Shib-Session-Index", "HTTP_SHIB_SESSION_INDEX"); app.clearHeader(request, "Shib-Identity-Provider", "HTTP_SHIB_IDENTITY_PROVIDER"); app.clearHeader(request, "Shib-Authentication-Method", "HTTP_SHIB_AUTHENTICATION_METHOD"); app.clearHeader(request, "Shib-Authentication-Instant", "HTTP_SHIB_AUTHENTICATION_INSTANT"); @@ -420,6 +421,9 @@ pair ServiceProvider::doExport(SPRequest& request, bool requireSessio hval = session->getAuthnContextDeclRef(); if (hval) app->setHeader(request, "Shib-AuthnContext-Decl", hval); + hval = session->getSessionIndex(); + if (hval) + app->setHeader(request, "Shib-Session-Index", hval); // Maybe export the assertion keys. pair exp=settings.first->getBool("exportAssertion");