stable

Clone or download

Read-only

Check expiration date and expire keys in daily job

This is part of story #13667 have an expiration date associated to API AccessKey A forgeupgrade add the expiration_date in the user_access_key table. To test this patch, you have to manually add an expiration date (timestamp) into your database and launch (or wait) the Tuleap daily job. All access keys that have an expiration date set and this expiration date is <= the date and time the daily job is run will be deleted. Change-Id: I2d80bc9da152bee0ffa675b9a4b32d96266cdce0

Modified Files

Name
M src/common/CLI/Command/DailyJobCommand.php +11 −0 Go to diff View file
M src/common/User/AccessKey/AccessKeyDAO.php +8 −0 Go to diff View file
M src/common/User/AccessKey/AccessKeyRevoker.php +6 −1 Go to diff View file
M src/db/mysql/database_structure.sql +1 −1 Go to diff View file
A src/db/mysql/updates/2019/201908071006_add_api_key_expiration_date.php +42 −0 Go to diff View file
M src/utils/tuleap.php +5 −0 Go to diff View file