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

feat: always persist sessions server-side, config adjustments #1997

Merged
merged 3 commits into from
Dec 20, 2024

Conversation

bjoern-m
Copy link
Contributor

Description

This PR ensures that all sessions are persisted server-side, enabling remote revocation of any active session. Alongside this, the session configuration has been updated, and the session.server_side configuration object has been removed.

The following session parameters have been introduced or updated:

  • acquire_ip_address: Stores the user's IP address in the sessions table when enabled.
  • acquire_user_agent: Stores the user's user agent in the sessions table when enabled.
  • allow_revocation: Enables users to revoke active sessions through their profile.
  • show_on_profile: Displays the session section in the user's profile when enabled.
  • limit (previously session.server_side.limit): Specifies the maximum number of active sessions a user can have simultaneously.

@bjoern-m bjoern-m force-pushed the feat-always-persist-sessions branch 2 times, most recently from 4ae3fca to cba11d0 Compare December 12, 2024 12:32
@bjoern-m bjoern-m force-pushed the feat-always-persist-sessions branch from 4695938 to e823717 Compare December 12, 2024 13:04
@bjoern-m bjoern-m marked this pull request as ready for review December 12, 2024 13:08
@bjoern-m bjoern-m merged commit c40897a into main Dec 20, 2024
8 checks passed
@bjoern-m bjoern-m deleted the feat-always-persist-sessions branch December 20, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Recently closed
Development

Successfully merging this pull request may close these issues.

2 participants