Keyrock Token duration
Hi,
How do I configure the token duration in my instance of Keyrock? I am trying without success to set "expiration" in the section [token] of the keystone.conf .
Best regards,
Eduardo Mendes
Hi,
How do I configure the token duration in my instance of Keyrock? I am trying without success to set "expiration" in the section [token] of the keystone.conf .
Best regards,
Eduardo Mendes
Hi, Keystone tokens expiration time is configured in https://github.com/ging/keystone/blob...
Regarding OAuth2 tokens, right now the expiration time is not configurable. We have plans of adding this possibility soon.
I implemented a simple solution to work with OAuth2, using the same configuration of [token] expiration:
In the file "keystone/contrib/oauth2/core.py"
1) import CONF: from keystone import config CONF = config.CONF
2) add this line in "def init" of "class Server", just after the comments: tokenexpiresin=CONF.token.expiration
That is it. Now it is possible to change the token duration in seconds uncommenting "expiration" inside [token] of keystone.conf
Asked: 2016-12-07 13:06:59 +0100
Seen: 5,050 times
Last updated: Dec 14 '16