pzampino commented on a change in pull request #424:
URL: https://github.com/apache/knox/pull/424#discussion_r601693342
##########
File path:
gateway-provider-security-jwt/src/main/java/org/apache/knox/gateway/provider/federation/jwt/filter/AbstractJWTFilter.java
##########
@@ -187,6 +186,22 @@ protected boolean tokenIsStillValid(JWT jwtToken) throws
UnknownTokenException {
return expires == null || new Date().before(expires);
}
+ protected boolean tokenIsStillValid(final String tokenId) throws
UnknownTokenException {
+ Date expires = getExpiration(tokenId);
+ return expires == null || (new Date().before(expires));
+ }
+
+ private Date getExpiration(final String tokenId) throws
UnknownTokenException {
Review comment:
Changed to getServerManagedStateExpiration(String)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]