Skip to content

Introduce a new session entity and store the session identifier in the tokens - #2520

Merged
kevinchalet merged 1 commit into
openiddict:devfrom
kevinchalet:sessions
Jul 29, 2026
Merged

Introduce a new session entity and store the session identifier in the tokens#2520
kevinchalet merged 1 commit into
openiddict:devfrom
kevinchalet:sessions

Conversation

@kevinchalet

Copy link
Copy Markdown
Member

Contributes to #2175.

This PR introduces a new session entity and with all the usual artifacts (manager, store, cache). As mentioned in #2175, that new entity will serve as a way to identify a specific "connection" between a client application and an authorization server for a given user session. Its most main property, LoginId, represents the identifier of the user login/session and can be set to any arbitrary value (even if a random 128/256-bit value is probably the best and simplest option).

Note: this PR doesn't add backchannel logout support - that will be added later via a dedicated PR - but it updates the ASP.NET 4.8 and ASP.NET Core 10 samples to generate persist a 256-bit login ID per authentication in the authentication cookies (while making sure the same value is preserved when the authentication cookie/ticket is renewed).

@kevinchalet kevinchalet added this to the 8.0.0-preview.3 milestone Jul 29, 2026
@kevinchalet kevinchalet self-assigned this Jul 29, 2026
@kevinchalet
kevinchalet merged commit 4f6882b into openiddict:dev Jul 29, 2026
6 checks passed
@kevinchalet
kevinchalet deleted the sessions branch July 29, 2026 21:27
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.

1 participant