-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Don't allow the newly created token to be ejected in clean_old_tokens
#1618
Comments
Got same problem here, me and my team suspect of this year being a leap year is causing that behavior. |
Ahh, that's a good thought! |
Although I think we should focus on cause of the tokens that get generated with a larger expiry than the configured lifespan the changes you suggest could solve the problem |
I could know how to fix it but I wasn't able to reproduce it with a test, so any more reproduction info is useful. |
I also faced such weird issue during my work so solved it and created pr, hope it will fix it. |
We hit an odd situation with our Pingdom user, where it ended up having 10 tokens (the default
max_number_of_devices
) with anexpiry
slightly too far into the future. That in itself is still a mystery. But it caused a situation where the user couldn't log in, because the newly created token (with a properexpiry
) was the one being ejected inclean_old_tokens
. I think we should change that logic to never eject the token that was just created, otherwise the user can't sign in. Barring my odd situation, you might do something like changetoken_lifespan
to be earlier.The text was updated successfully, but these errors were encountered: