Skip to content

Conversation

@jonkoops
Copy link
Contributor

Clears all values which are stored in local storage by the adapter when expired or malformed. This fixes a bug where some items were not removed from storage due to a mismatched index in the loop that removes them.

Closes #15635

@jonkoops jonkoops requested a review from a team as a code owner October 17, 2024 15:14
Copy link
Contributor

@douglaspalmer douglaspalmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good. One small suggestion if checkValidity() is going to return true for invalid entries can it be refactored to isInvalid(). In my mind checkValidity would return true if the entry was valid.

keycloak-github-bot[bot]

This comment was marked as outdated.

@keycloak-github-bot

This comment was marked as outdated.

Copy link
Contributor

@douglaspalmer douglaspalmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jonkoops jonkoops enabled auto-merge (squash) October 17, 2024 16:33
@jonkoops jonkoops merged commit 31ce14a into keycloak:main Oct 17, 2024
@jonkoops jonkoops deleted the expire-stored branch October 18, 2024 10:33
jonkoops added a commit to jonkoops/keycloak that referenced this pull request Oct 18, 2024
Closes keycloak#15635

Signed-off-by: Jon Koops <[email protected]>
(cherry picked from commit 31ce14a)
jonkoops added a commit that referenced this pull request Oct 18, 2024
Closes #15635

Signed-off-by: Jon Koops <[email protected]>
(cherry picked from commit 31ce14a)
@edewit edewit mentioned this pull request Nov 19, 2024
@edewit edewit mentioned this pull request Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

oidc - JavaScript-Adapter LocalStorage#clearExpired does not clear all possible items

3 participants