mirror of
https://github.com/apache/lucene.git
synced 2025-02-10 20:15:18 +00:00
SOLR-12121: Remove a System.out.println in JWTAuthPlugin
(cherry picked from commit a18aa2118bf53bed0bf512820e066a2fa9f018b1)
This commit is contained in:
parent
cedff86aaa
commit
e68d16f32c
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user