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

Use the last_used value from the auth cache database to check for cache lifetime when authorizing #793

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

marcemmers
Copy link
Contributor

Describe your changes

When trying to authorize a token that has passed its lifetime in the cache but is not cleaned up yet by the 15 minuted automatic clean up, it would still get accepted. This prevents that and removes it from the cache during the authorization.

Issue ticket number and link

Checklist before requesting a review

…he lifetime when authorizing

Signed-off-by: Marc Emmers <m.emmers@alfen.com>
Signed-off-by: Marc Emmers <m.emmers@alfen.com>
Signed-off-by: Marc Emmers <m.emmers@alfen.com>
@marcemmers marcemmers merged commit 0f5dfa0 into main Sep 17, 2024
4 checks passed
@marcemmers marcemmers deleted the me-fix-auth-cache-lifetime-not-used branch September 17, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants