[java-identity-provider] branch main updated: Override the more complete addCookie method in base class.

Scott Cantor cantor.2 at osu.edu
Tue Apr 8 19:25:16 UTC 2025


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

scantor pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=d96e28ead20b318be17593dccc3d0ad7892c6ff6

The following commit(s) were added to refs/heads/main by this push:
     new d96e28ead Override the more complete addCookie method in base class.
d96e28ead is described below

commit d96e28ead20b318be17593dccc3d0ad7892c6ff6
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Apr 8 15:25:13 2025 -0400

    Override the more complete addCookie method in base class.
---
 .../shibboleth/idp/profile/support/StorageAwareCookieManager.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/support/StorageAwareCookieManager.java b/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/support/StorageAwareCookieManager.java
index 0e7c49032..4e3498242 100644
--- a/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/support/StorageAwareCookieManager.java
+++ b/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/support/StorageAwareCookieManager.java
@@ -123,10 +123,10 @@ public class StorageAwareCookieManager extends CookieManager {
 
     /** {@inheritDoc} */
     @Override
-    public void addCookie(@Nonnull final String name, @Nonnull final String value) {
-        super.addCookie(name, value);
+    public void addCookie(@Nonnull final String name, @Nonnull final String value, final int overrideMaxAge) {
+        super.addCookie(name, value, overrideMaxAge);
 
-        final Long exp = Instant.now().plusSeconds(getMaxAge()).toEpochMilli();
+        final Long exp = Instant.now().plusSeconds(overrideMaxAge).toEpochMilli();
         
         final StorageService ss = storageService;
         if (ss != null) {

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


More information about the commits mailing list