[java-plugin-shibd-saml] branch dev/StateMgmtWIP updated: Pull SessionNotOnOrAfter from statement during output step.

Codeberg noreply at shibboleth.net
Mon May 4 18:59:05 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch dev/StateMgmtWIP
in repository java-plugin-shibd-saml.

View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd-saml/commit/98100af38c77fe6ad9a1f924a093bef11bff9e8a

The following commit(s) were added to refs/heads/dev/StateMgmtWIP by this push:
     new 98100af  Pull SessionNotOnOrAfter from statement during output step.
98100af is described below

commit 98100af38c77fe6ad9a1f924a093bef11bff9e8a
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon May 4 14:58:53 2026 -0400

    Pull SessionNotOnOrAfter from statement during output step.
---
 .../sp/saml/saml2/profile/impl/PrepareAgentResponse.java          | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/PrepareAgentResponse.java b/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/PrepareAgentResponse.java
index be30ad1..77d67da 100644
--- a/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/PrepareAgentResponse.java
+++ b/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/PrepareAgentResponse.java
@@ -15,6 +15,7 @@
 package net.shibboleth.sp.saml.saml2.profile.impl;
 
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.Map;
 import java.util.function.Function;
 
@@ -149,6 +150,13 @@ public class PrepareAgentResponse extends AbstractTokenConsumerResponseAction {
         
         return null;
     }
+    
+    /** {@inheritDoc} */
+    @Override
+    @Nullable protected Instant getSessionNotOnOrAfter(@Nonnull final ProfileRequestContext profileRequestContext) {
+        final AuthnStatement statement = samlTokenContext.getAuthnStatement();
+        return statement != null ? statement.getSessionNotOnOrAfter() : null;
+    }    
 
     static {
         NO_XML_DECL_PARAMS = CollectionSupport.<String,Object>singletonMap("xml-declaration", Boolean.FALSE);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list