You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ad...@apache.org on 2017/11/21 15:02:30 UTC

james-project git commit: JAMES-2226 Expose in logs the original cause in case of a JWT verification failure

Repository: james-project
Updated Branches:
  refs/heads/master ae7a4be5a -> 84c5a6b90


JAMES-2226 Expose in logs the original cause in case of a JWT verification failure


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/84c5a6b9
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/84c5a6b9
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/84c5a6b9

Branch: refs/heads/master
Commit: 84c5a6b90f4b1fe237784a7c98be4bf44141cbbb
Parents: ae7a4be
Author: Antoine Duprat <ad...@linagora.com>
Authored: Tue Nov 21 11:13:39 2017 +0100
Committer: Antoine Duprat <ad...@linagora.com>
Committed: Tue Nov 21 11:13:39 2017 +0100

----------------------------------------------------------------------
 .../jwt/src/main/java/org/apache/james/jwt/JwtTokenVerifier.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/84c5a6b9/server/protocols/jwt/src/main/java/org/apache/james/jwt/JwtTokenVerifier.java
----------------------------------------------------------------------
diff --git a/server/protocols/jwt/src/main/java/org/apache/james/jwt/JwtTokenVerifier.java b/server/protocols/jwt/src/main/java/org/apache/james/jwt/JwtTokenVerifier.java
index cffc5fb..2fe9233 100644
--- a/server/protocols/jwt/src/main/java/org/apache/james/jwt/JwtTokenVerifier.java
+++ b/server/protocols/jwt/src/main/java/org/apache/james/jwt/JwtTokenVerifier.java
@@ -51,7 +51,7 @@ public class JwtTokenVerifier {
             }
             return true;
         } catch (JwtException e) {
-            LOGGER.info("Failed Jwt verification");
+            LOGGER.info("Failed Jwt verification", e);
             return false;
         }
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org