8000 Clear all entries stored in local storage by jonkoops · Pull Request #34056 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Clear all entries stored in local storage - #34056

Merged
jonkoops merged 1 commit into
keycloak:mainfrom
jonkoops:expire-stored
Oct 17, 2024
Merged

jonkoops merged 1 commit into
keycloak:mainfrom
jonkoops:expire-stored

Conversation

@jonkoops
Copy link
Copy Markdown
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
@douglaspalmer douglaspalmer left a comment
Copy link
Copy Markdown
Contributor

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.

Closes keycloak#15635

Signed-off-by: Jon Koops <jonkoops@gmail.com>
keycloak-github-bot[bot]

This comment was marked as outdated.

@keycloak-github-bot

This comment was marked as outdated.

@douglaspalmer douglaspalmer left a comment
Copy link
Copy Markdown
Contributor

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 <jonkoops@gmail.com>
(cherry picked from commit 31ce14a)
jonkoops added a commit that referenced this pull request Oct 18, 2024
Closes #15635

Signed-off-by: Jon Koops <jonkoops@gmail.com>
(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

0