From 026cd7834819ae7f7ca7a4bc3dc09fe02d90dd31 Mon Sep 17 00:00:00 2001 From: Oleksandr Dzhychko Date: Fri, 27 Sep 2024 08:48:09 +0200 Subject: [PATCH] refactor(model-server): use the default leeway for JWT verification, which is as well 0 See https://github.com/auth0/java-jwt/blob/fb6d00ad9773c6e7624c518feb2d06ed191287fa/lib/src/main/java/com/auth0/jwt/JWTVerifier.java#L71 --- .../main/kotlin/org/modelix/authorization/AuthorizationConfig.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt b/authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt index b4b8fce374..6c7d16b375 100644 --- a/authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt +++ b/authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt @@ -221,5 +221,4 @@ private fun getBooleanFromEnv(name: String): Boolean? { internal fun getVerifierForSpecificAlgorithm(algorithm: Algorithm): JWTVerifier = JWT.require(algorithm) - .acceptLeeway(0L) .build()