We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question

Revision history [back]

click to hide/show revision 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