From ccfc67e86500c0d97d0e93d2bd65f2d80eb27261 Mon Sep 17 00:00:00 2001 From: akila94 Date: Wed, 6 Nov 2024 21:24:26 +0530 Subject: [PATCH] Fix consent revocation issue when iat is not available --- .../cds/identity/authenticator/util/CDSJWTValidator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/org.wso2.openbanking.cds.identity/src/main/java/org/wso2/openbanking/cds/identity/authenticator/util/CDSJWTValidator.java b/components/org.wso2.openbanking.cds.identity/src/main/java/org/wso2/openbanking/cds/identity/authenticator/util/CDSJWTValidator.java index 291bf2e4..92ea2716 100644 --- a/components/org.wso2.openbanking.cds.identity/src/main/java/org/wso2/openbanking/cds/identity/authenticator/util/CDSJWTValidator.java +++ b/components/org.wso2.openbanking.cds.identity/src/main/java/org/wso2/openbanking/cds/identity/authenticator/util/CDSJWTValidator.java @@ -291,7 +291,9 @@ private boolean checkJTIValidityPeriod(String jti, long jwtExpiryTimeMillis, lon } private void persistJWTID(final String jti, long expiryTime, long issuedTime) throws OAuthClientAuthnException { - + if (issuedTime == 0) { + issuedTime = System.currentTimeMillis(); + } jwtStorageManager.persistJWTIdInDB(jti, expiryTime, issuedTime); }