[shibboleth-sp2] 110/119: Export authn instant.
Ferenc Wágner
wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
wferi-guest pushed a commit to annotated tag 1.3.1
in repository shibboleth-sp2.
commit 3a61af1ece92fed77b2734a98e6087ea07f6c327
Author: Scott Cantor <cantor.2 at osu.edu>
Date: Thu Nov 15 04:32:20 2007 +0000
Export authn instant.
---
shib-target/shib-target.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/shib-target/shib-target.cpp b/shib-target/shib-target.cpp
index 364836d..b04f341 100644
--- a/shib-target/shib-target.cpp
+++ b/shib-target/shib-target.cpp
@@ -601,6 +601,10 @@ pair<bool,void*> ShibTarget::doExportAssertions(bool requireSession)
setHeader("Shib-Identity-Provider", m_priv->m_cacheEntry->getProviderId());
auto_ptr_char am(m_priv->m_cacheEntry->getAuthnStatement()->getAuthMethod());
setHeader("Shib-Authentication-Method", am.get());
+ if (m_priv->m_cacheEntry->getAuthnStatement()->getAuthInstant()) {
+ auto_ptr_char ai(m_priv->m_cacheEntry->getAuthnStatement()->getAuthInstant()->getRawData());
+ setHeader("Shib-Authentication-Instant", ai.get());
+ }
// Get the AAP providers, which contain the attribute policy info.
Iterator<IAAP*> provs=m_priv->m_app->getAAPProviders();
@@ -977,6 +981,7 @@ void ShibTargetPriv::clearHeaders(ShibTarget* st)
st->clearHeader("Shib-Origin-Site");
st->clearHeader("Shib-Identity-Provider");
st->clearHeader("Shib-Authentication-Method");
+ st->clearHeader("Shib-Authentication-Instant");
st->clearHeader("Shib-NameIdentifier-Format");
st->clearHeader("Shib-Attributes");
st->clearHeader("Shib-Application-ID");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git
More information about the Pkg-shibboleth-devel
mailing list