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

(cherry picked from commit a18aa2118bf53bed0bf512820e066a2fa9f018b1)
This commit is contained in:
Jan Høydahl 2019-03-14 10:48:09 +01:00
parent cedff86aaa
commit e68d16f32c

View File

@ -429,7 +429,6 @@ public class JWTAuthPlugin extends AuthenticationPlugin implements SpecProvider,
}
} catch (InvalidJwtException e) {
// 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()) {
return new JWTAuthenticationResponse(AuthCode.JWT_EXPIRED, "Authentication failed due to expired JWT token. Expired at " + e.getJwtContext().getJwtClaims().getExpirationTime());
}