Skip to content

Commit 069ee0b

Browse files
Oleksandr Dzhychkoslisson
authored andcommitted
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
1 parent 1d27baf commit 069ee0b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,4 @@ private fun getBooleanFromEnv(name: String): Boolean? {
221221

222222
internal fun getVerifierForSpecificAlgorithm(algorithm: Algorithm): JWTVerifier =
223223
JWT.require(algorithm)
224-
.acceptLeeway(0L)
225224
.build()

0 commit comments

Comments
 (0)