Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Apikey token expires in 24 hours #1003

Open
GuinierRemi opened this issue Jul 18, 2023 · 1 comment
Open

[BUG] Apikey token expires in 24 hours #1003

GuinierRemi opened this issue Jul 18, 2023 · 1 comment
Labels

Comments

@GuinierRemi
Copy link

πŸ’β€β™‚οΈ 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

  • Create an APIKey
  • Wait for 24 hours
  • Apikey should disappear from the apikey list

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
Copy link
Contributor

tdislay commented Jul 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants