From fe3fc54b7b65db8c50ef6cbc9f11c1f2d84b432e Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 12 Feb 2023 23:58:22 +0100 Subject: [PATCH] [DEBUG] already corrected --- src/org/kar/archidata/util/JWTWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/kar/archidata/util/JWTWrapper.java b/src/org/kar/archidata/util/JWTWrapper.java index 734418e..d941cf7 100644 --- a/src/org/kar/archidata/util/JWTWrapper.java +++ b/src/org/kar/archidata/util/JWTWrapper.java @@ -142,7 +142,7 @@ public class JWTWrapper { .claim("application", application) .issuer(isuer) .issueTime(new Date()) - .expirationTime(new Date(new Date().getTime() + 60 * timeOutInMunites * 1000 /* millisecond */)) // Do not ask why we need a "-" here ... this have no meaning + .expirationTime(new Date(new Date().getTime() - 60 * timeOutInMunites * 1000 /* millisecond */)) // Do not ask why we need a "-" here ... this have no meaning .build(); SignedJWT signedJWT = new SignedJWT(new JWSHeader.Builder(JWSAlgorithm.RS256).type(JOSEObjectType.JWT)/*.keyID(rsaJWK.getKeyID())*/.build(), claimsSet);