简体   繁体   中英

How can I configure the X-AUTH-TOKEN in the keyrock FIWARE

I want to configure the X-Auth-Token of Keyrock created by Fiware. But the thing is that the X-Auth-Token expire after an hour. And I want that the X-Auth-Token expire when the session is inactive or I want to know when can I reactive the auth-token for example when the token has 20 min left.

I don't know if I have explain well.

Thank you so much.

You can see how to configure the Keystone tokens expiration here .

For OAuth2 tokens, you can follow as described here :

1) import CONF: from keystone import config CONF = config.CONF

2) add this line in "def init" of "class Server", just after the comments: tokene

xpiresin=CONF.token.expiration

The second link has a reference for how to configure expiration time for keystone tokens (there is a config file in which you can set this) and some ideas about the same for OAuth2 tokens.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM