1 | initial version |
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