From 8e3b4e10b7754b90aa7cb0d17278a70bb79d08f5 Mon Sep 17 00:00:00 2001 From: KirillPamPam Date: Mon, 27 May 2024 18:31:08 +0400 Subject: [PATCH] Extend jwt iat window (#488) --- .../io/emeraldpay/dshackle/auth/processor/AuthProcessor.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/auth/processor/AuthProcessor.kt b/src/main/kotlin/io/emeraldpay/dshackle/auth/processor/AuthProcessor.kt index 67fb77d18..01fcf1649 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/auth/processor/AuthProcessor.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/auth/processor/AuthProcessor.kt @@ -43,6 +43,7 @@ abstract class AuthProcessor( .withClaim(RegisteredClaims.ISSUED_AT) { claim, _ -> claim.asInstant().plus(1, ChronoUnit.MINUTES).isAfter(Instant.now()) } + .acceptIssuedAt(60) .build() verifier.verify(token) } catch (e: Exception) {