Fixed issue with api accepting expired tokens
The token cache was being instantiated incorrectly. The timeToCacheToken and maxTokenCacheSize parameters were reversed causing the token to be cached for a very long time (12 days instead of 10 minutes) after it had expired. Change-Id: If2ae075d44729fbbce472c80c46d3b09104c61e5
This commit is contained in:
parent
af750137e1
commit
15074fc8a9
@ -126,7 +126,7 @@ public class Config implements AuthConstants {
|
||||
maxActive, maxIdle, evictPeriod, minIdleTime, adminToken);
|
||||
|
||||
verifyRequiredParamsForAuthMethod();
|
||||
this.client = new TokenCache<>(timeToCacheToken, maxTokenCacheSize, map);
|
||||
this.client = new TokenCache<>(maxTokenCacheSize, timeToCacheToken, map);
|
||||
logger.info("Using https {}", useHttps);
|
||||
if (useHttps) {
|
||||
logger.info("Auth host (2-way SSL: " + clientAuth + "): " + host);
|
||||
|
Loading…
x
Reference in New Issue
Block a user