kuzzleio / kuzzle-admin-console

A SPA to administrate your Kuzzle: index and collection management, document creation, realtime subscription and permissions management
http://console.kuzzle.io
Apache License 2.0
61 stars 25 forks source link

[BUG] Apikey token expires in 24 hours #1003

Open GuinierRemi opened 1 year ago

GuinierRemi commented 1 year ago

💁‍♂️ Problem : Reported by : Client LAPOSTE / Jean Paul FABRE When creating an APIKey, it expires in 24 hours when it is in fact supposed to expire after an indefinite amount of time.

image

📖 Steps to reproduce

The tokens created in the MMI (IHM in French) of the Admin Console expire & disappear in 24 hours but are OK when created with Postman via API. The default value should be -1.

🉑 Expected behavior: It should never expire if no expiration time is specified

https://docs.kuzzle.io/core/2/api/controllers/security/create-api-key/

tdislay commented 1 year ago

Check if a security.apiKey.maxTTL is set (and if the api key was created using the security controller or the auth one) image