token_life = 0 in tempauth
I would like to disable expiration of auth token. Is it possible to add this feature in next versions? For my own installation swift/common/middleware/tempauth.py is patched, but it would be difficult to upgrade the software in future.
The goal is to disable the authentication. May be i'm going in wrong way?
Just in case, the path is included.
diff ./1.9.X/swift-1.9.X/swift/common/middleware/tempauth.py ./1.9.0/swift-1.9.0/swift/common/middleware/tempauth.py 211c211
< if expires > 0 and expires < time():
if expires < time():
454c454
< if expires == 0 or expires > time():
if expires > time():
460,463c460 < expires = 0 < if self.token_life: < expires = time() + self.token_life
<
expires = time() + self.token_life
473,476c470,471 < if expires > 0: < memcache_client.set(memcache_token_key, (expires, groups), time=float(expires - time())) < else:
< memcache_client.set(memcache_token_key, (expires, groups), time=0.0)
memcache_client.set(memcache_token_key, (expires, groups), time=float(expires - time()))
480,483c475,476 < if expires > 0: < memcache_client.set(memcache_user_key, token, time=float(expires - time())) < else:
< memcache_client.set(memcache_user_key, token, time=0.0)
memcache_client.set(memcache_user_key, token, time=float(expires - time()))