Skip to content

Flush all sessions in logout all#68

Merged
Eduardo Vozniak (evozniak) merged 4 commits intophilips-forks:picsfrom
fdfey:logoutallsessionsremoveredis
Jun 11, 2025
Merged

Flush all sessions in logout all#68
Eduardo Vozniak (evozniak) merged 4 commits intophilips-forks:picsfrom
fdfey:logoutallsessionsremoveredis

Conversation

@fdfey
Copy link
Copy Markdown

@fdfey Felipe Fey (fdfey) commented Jun 9, 2025

Description

During logout all sessions, the session should be removed from Redis, otherwise even though the token is expired (cannot write), the user can still read data in the application while the session (15 minutes of refresh token) is still valid
for that we are mapping all session keys to a new entry (encrypted) in Redis based on user information and the secret
after logout all sessions, we remove the current session from Redis (already existing mechanism), and also read this entry to remove all other active sessions

image

Motivation and Context

AB#1625768

How Has This Been Tested?

Locally with pics

Checklist:

  • My change requires a change to the documentation or CHANGELOG.
  • I have updated the documentation/CHANGELOG accordingly.
  • I have created a feature (non-master) branch for my PR.

@github-actions github-actions bot added the go label Jun 9, 2025
@fdfey Felipe Fey (fdfey) marked this pull request as ready for review June 11, 2025 10:10
@fdfey Felipe Fey (fdfey) requested a review from a team as a code owner June 11, 2025 10:10
@fdfey Felipe Fey (fdfey) changed the title WIP - Flush all sessions in logout all Flush all sessions in logout all Jun 11, 2025
@github-actions github-actions bot added the tests label Jun 11, 2025
@evozniak Eduardo Vozniak (evozniak) merged commit b5c83e6 into philips-forks:pics Jun 11, 2025
4 checks passed
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.

4 participants