git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/authorization-common-client@131695 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0355825fb4
commit
bfdb84c980
|
@ -221,10 +221,10 @@ public class DefaultAuthorizationProxy implements AuthorizationProxy {
|
|||
AuthorizationEndpoint endpoint = getEndpoint(infrastructureHashFromToken);
|
||||
|
||||
if (cache.containsKey(realToken) && cache.get(realToken).isValid(endpoint.getClientCacheValidity())){
|
||||
log.trace("valid entry found in cache for token {}, returning it",String.format("%s********",realToken.substring(0, token.length()-8)));
|
||||
log.trace("valid entry found in cache for token {}, returning it",String.format("%s********",realToken.substring(0, realToken.length()-8)));
|
||||
return cache.get(realToken).getEntry();
|
||||
} else
|
||||
log.trace("invalid entry found in cache for token {}, contacting auth service",String.format("%s********",token.substring(0, token.length()-8)));
|
||||
log.trace("invalid entry found in cache for token {}, contacting auth service",String.format("%s********",realToken.substring(0, realToken.length()-8)));
|
||||
|
||||
final String methodPath = "/token/";
|
||||
|
||||
|
|
Loading…
Reference in New Issue