From 44d69eba7f89885c69bb04ea9208fc7bec25bee8 Mon Sep 17 00:00:00 2001 From: Robert Heinicke Date: Wed, 11 Nov 2020 15:48:37 +0100 Subject: [PATCH] Change log level to warn for unknown public keys --- .../spring/security/jwt/token/verifier/JWTVerifierFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/mercateo/spring/security/jwt/token/verifier/JWTVerifierFactory.java b/src/main/java/com/mercateo/spring/security/jwt/token/verifier/JWTVerifierFactory.java index debc9d1..2a091fd 100644 --- a/src/main/java/com/mercateo/spring/security/jwt/token/verifier/JWTVerifierFactory.java +++ b/src/main/java/com/mercateo/spring/security/jwt/token/verifier/JWTVerifierFactory.java @@ -53,7 +53,7 @@ public RSAPublicKey getPublicKeyById(String keyId) { .mapTry(Jwk::getPublicKey) .map(Key::getEncoded) .mapTry(JWTVerifierFactory::createKey) - .onFailure(e -> log.error("Error getting public key for id " + keyId, e)) + .onFailure(e -> log.warn("Error getting public key for id " + keyId, e)) .getOrElseThrow(JWTVerifierFactory::map); }