[java-plugin-shibd] 01/03: Fix expiration calculation for revocation records.
Codeberg
noreply at shibboleth.net
Mon Nov 2 15:55:03 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-plugin-shibd.
View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd/commit/4494205bba6e602fd810045a919b60dbf6e13811
commit 4494205bba6e602fd810045a919b60dbf6e13811
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon Nov 2 09:22:27 2026 -0500
Fix expiration calculation for revocation records.
---
.../src/main/java/net/shibboleth/sp/profile/impl/RevokeSession.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/RevokeSession.java b/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/RevokeSession.java
index aabfc18..0ec2f0b 100644
--- a/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/RevokeSession.java
+++ b/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/RevokeSession.java
@@ -16,6 +16,7 @@ package net.shibboleth.sp.profile.impl;
import java.io.IOException;
import java.time.Duration;
+import java.time.Instant;
import java.util.function.Function;
import javax.annotation.Nonnull;
@@ -173,7 +174,8 @@ public class RevokeSession extends AbstractRevocationAction {
}
try {
- if (localStorage.create(getStorageContext(), getSessionID(), "1", getStorageLifetime())) {
+ if (localStorage.create(getStorageContext(), getSessionID(), "1",
+ Instant.now().plusSeconds(getStorageLifetime()).toEpochMilli())) {
log.debug("{} Added revocation record for session ({})", getLogPrefix(), getSessionID());
return true;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list