From 130921fc2955b28c6dcc12c81cf50d22341f4d49 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Wed, 15 Aug 2012 17:44:55 -0700 Subject: [PATCH] Reduce HP Cloud authentication token timeout I see a 12 hour expiry when requesting a new authentication token. Reducing this timeout should not hurt in any case. --- .../keystone/v2_0/config/KeystoneAuthenticationModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/openstack-keystone/src/main/java/org/jclouds/openstack/keystone/v2_0/config/KeystoneAuthenticationModule.java b/apis/openstack-keystone/src/main/java/org/jclouds/openstack/keystone/v2_0/config/KeystoneAuthenticationModule.java index 9987e9b17a..e3861a5577 100644 --- a/apis/openstack-keystone/src/main/java/org/jclouds/openstack/keystone/v2_0/config/KeystoneAuthenticationModule.java +++ b/apis/openstack-keystone/src/main/java/org/jclouds/openstack/keystone/v2_0/config/KeystoneAuthenticationModule.java @@ -186,11 +186,11 @@ public class KeystoneAuthenticationModule extends AbstractModule { } // TODO: what is the timeout of the session token? modify default accordingly - // PROPERTY_SESSION_INTERVAL is default to 60 seconds, but we have this here at 23 hours for now. + // PROPERTY_SESSION_INTERVAL is default to 60 seconds, but we have this here at 11 hours for now. @Provides @Singleton public LoadingCache provideAccessCache(Function getAccess) { - return CacheBuilder.newBuilder().expireAfterWrite(23, TimeUnit.HOURS).build(CacheLoader.from(getAccess)); + return CacheBuilder.newBuilder().expireAfterWrite(11, TimeUnit.HOURS).build(CacheLoader.from(getAccess)); } // Temporary conversion of a cache to a supplier until there is a single-element cache