
On Jul 19 09:55AM, Ramon Medeiros wrote:
Proposal:
Return the remaining time for the end of the session by REST API. This will add a functionality in the UI, that will popup a warning asking if user wants to keep it logged.
More information on issue: https://github.com/kimchi-project/wok/issues/133
Doubts: How i will return this on the header?
Not sure, but googling a little bit I found that HTTP Response Header has a field called 'Expires': https://tools.ietf.org/html/rfc7234#section-5.3 For more information about Response Header Fields: https://tools.ietf.org/html/rfc7231#section-7
Where timeout of authentication (session) is ?
'session_timeout' is a variable present in Wok's configuration file (src/wok.conf.in line 27) and set in src/wok/config.py.in (line 273). You can get it's value in backend, just importing wok.config and reading it's value: import wok.config as config session_timeout = config.config.get("server", "session_timeout")
--
Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
-- Paulo Ricardo Paz Vital Linux Technology Center, IBM Systems http://www.ibm.com/linux/ltc/