Merge pull request #785 from andrewgaul/hpcloud-auth-token-timeout

Reduce HP Cloud authentication token timeout
This commit is contained in:
Adrian Cole 2012-08-15 18:26:13 -07:00
commit 604596daa1
1 changed files with 2 additions and 2 deletions

View File

@ -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<Credentials, Access> provideAccessCache(Function<Credentials, Access> 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