Skip to content

Always store auth context in session#24384

Merged
thll merged 2 commits intomasterfrom
fix/session-context-storage
Dec 1, 2025
Merged

Always store auth context in session#24384
thll merged 2 commits intomasterfrom
fix/session-context-storage

Conversation

@thll
Copy link
Contributor

@thll thll commented Nov 28, 2025

If a session auth context is provided during authentication, we will now always store it to a session. If no session exists at this point, we will create a session because we can treat the presence of a SessionAuthContext as a sufficient indicator that the creation of a session is expected/required.

Previously, we were only storing the auth context in the session if the session existed. Most likely because of a refactoring of the SessionCreator in 5cdac60, the listener that persists the data is now called before the session is created.

/nocl

If a session auth context is provided during authentication, we will now always store it
to a session. If no session exists at this point, we will create a session because we
can treat the presence of a SessionAuthContext as a sufficient indicator that the
creation of a session is expected/required.

Previously, we were only storing the auth context in the session if the session existed.
Most likely because of a refactoring of the SessionCreator in
5cdac60, the listener that persists the data is now
called before the session is created.
@thll thll force-pushed the fix/session-context-storage branch from d3aaf6e to 84659c1 Compare November 28, 2025 15:27
@thll thll marked this pull request as ready for review November 28, 2025 16:17
@thll thll requested a review from a team November 28, 2025 16:17
@thll thll requested a review from bernd November 28, 2025 18:53
@thll thll merged commit d7284c3 into master Dec 1, 2025
23 checks passed
@thll thll deleted the fix/session-context-storage branch December 1, 2025 08:11
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