From: cantor Date: Wed, 14 Nov 2007 03:02:05 +0000 (+0000) Subject: Export authn instant. X-Git-Tag: 2.4~669 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=e448a564d99e3e5d6f4c420088451cf5befa1938 Export authn instant. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2604 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/shibsp/ServiceProvider.cpp b/shibsp/ServiceProvider.cpp index 65c1164..22fbfe4 100644 --- a/shibsp/ServiceProvider.cpp +++ b/shibsp/ServiceProvider.cpp @@ -115,6 +115,7 @@ namespace shibsp { request.clearHeader("Shib-Session-ID", "HTTP_SHIB_SESSION_ID"); request.clearHeader("Shib-Identity-Provider", "HTTP_SHIB_IDENTITY_PROVIDER"); request.clearHeader("Shib-Authentication-Method", "HTTP_SHIB_AUTHENTICATION_METHOD"); + request.clearHeader("Shib-Authentication-Instant", "HTTP_SHIB_AUTHENTICATION_INSTANT"); request.clearHeader("Shib-AuthnContext-Class", "HTTP_SHIB_AUTHNCONTEXT_CLASS"); request.clearHeader("Shib-AuthnContext-Decl", "HTTP_SHIB_AUTHNCONTEXT_DECL"); request.clearHeader("Shib-Assertion-Count", "HTTP_SHIB_ASSERTION_COUNT"); @@ -354,6 +355,9 @@ pair ServiceProvider::doExport(SPRequest& request, bool requireSessio const char* hval = session->getEntityID(); if (hval) request.setHeader("Shib-Identity-Provider", hval); + hval = session->getAuthnInstant(); + if (hval) + request.setHeader("Shib-Authentication-Instant", hval); hval = session->getAuthnContextClassRef(); if (hval) { request.setHeader("Shib-Authentication-Method", hval);