centreon-archived
centreon-archived copied to clipboard
Customize the expiration time for the REST API token
BUG REPORT INFORMATION
Centreon Web version: centreon-web-2.8.14-8.el7.centos.noarch
Centreon Engine version: centreon-engine-1.8.0-2.el7.centos.x86_64
Centreon Broker version: centreon-broker-3.0.10-3.el7.centos.x86_64
OS: Red Hat Enterprise Linux Server release 7.4 (Maipo)
Additional environment details (AWS, VirtualBox, physical, etc.): Openstack instance
Steps to reproduce the issue: 1. 2. 3.
Describe the results you received: Token expires.
Describe the results you expected: Manage the expiration time from GUI
Additional information you think important (e.g. issue happens only occasionally): Following https://github.com/centreon/centreon/blob/2.8.x/www/api/index.php The xpiration time is "hard" coded.
/* Purge old token */ $pearDB->query("DELETE FROM ws_token WHERE generate_date < DATE_SUB(NOW(), INTERVAL 1 HOUR)");
Hi,
I change this issue to create an enhancement to manage expiration time but not for each user.
Hi,
Is-it possible to know how to manage the expiration time and have the update of this enhancement ?
Thanks