centreon-archived icon indicating copy to clipboard operation
centreon-archived copied to clipboard

Customize the expiration time for the REST API token

Open 5145h opened this issue 7 years ago • 2 comments


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)");

5145h avatar Jan 08 '18 09:01 5145h

Hi,

I change this issue to create an enhancement to manage expiration time but not for each user.

lpinsivy avatar Jan 09 '18 09:01 lpinsivy

Hi,

Is-it possible to know how to manage the expiration time and have the update of this enhancement ?

Thanks

Placarddufutur avatar May 25 '22 08:05 Placarddufutur