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

fix: remove session id from jwt on disabled server side sessions #1993

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

lfleischmann
Copy link
Member

Description

The session JWT contains a session_id even when server side sessions are disabled.

Implementation

The session_id is now set if server side sessions are enabled.

Tests

Added a small unit test. Run the backend, log in, parse the cookie JWT (jwt.io) to see if it contains the session_id claim.

@lfleischmann lfleischmann marked this pull request as draft December 6, 2024 08:14
@lfleischmann lfleischmann marked this pull request as ready for review December 6, 2024 08:21
@lfleischmann lfleischmann merged commit 60dcc43 into main Dec 6, 2024
8 checks passed
@lfleischmann lfleischmann deleted the fix-jwt-session-id branch December 6, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants