[DEV] remove the timeout control in test mode to permit @swagger to have generic token

This commit is contained in:
Edouard DUPIN 2023-12-31 09:32:40 +01:00
parent 61f3e70835
commit 49654698a6

View File

@ -229,7 +229,7 @@ public class JWTWrapper {
return null; return null;
} }
} }
if (!new Date().before(signedJWT.getJWTClaimsSet().getExpirationTime())) { if (!ConfigBaseVariable.getTestMode() && !new Date().before(signedJWT.getJWTClaimsSet().getExpirationTime())) {
LOGGER.error("JWT token is expired now = " + new Date() + " with=" + signedJWT.getJWTClaimsSet().getExpirationTime()); LOGGER.error("JWT token is expired now = " + new Date() + " with=" + signedJWT.getJWTClaimsSet().getExpirationTime());
return null; return null;
} }