SOLR-12121: Remove a System.out.println in JWTAuthPlugin

This commit is contained in:
Jan Høydahl 2019-03-14 10:48:09 +01:00
parent 6d0386c901
commit a18aa2118b
1 changed files with 0 additions and 1 deletions

View File

@ -429,7 +429,6 @@ public class JWTAuthPlugin extends AuthenticationPlugin implements SpecProvider,
} }
} catch (InvalidJwtException e) { } catch (InvalidJwtException e) {
// Whether or not the JWT has expired being one common reason for invalidity // Whether or not the JWT has expired being one common reason for invalidity
System.out.println("Exception is " + e.getClass().getName() + ", " + e.getMessage() + ", code=" + e.getErrorDetails().get(0).getErrorCode());
if (e.hasExpired()) { if (e.hasExpired()) {
return new JWTAuthenticationResponse(AuthCode.JWT_EXPIRED, "Authentication failed due to expired JWT token. Expired at " + e.getJwtContext().getJwtClaims().getExpirationTime()); return new JWTAuthenticationResponse(AuthCode.JWT_EXPIRED, "Authentication failed due to expired JWT token. Expired at " + e.getJwtContext().getJwtClaims().getExpirationTime());
} }