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: check server side session for REST API endpoints #1988

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

FreddyDevelop
Copy link
Contributor

Description

Check server side sessions in session middleware for REST API endpoints. Without it a server side session could be deleted, but can still be used at the REST API endpoints.

Implementation

When server side sessions are enabled, check if the session is still stored in the database.

Tests

Delete a server side session and check that the REST API endpoints return Unauthorized when the deleted session token is used.

Check server side sessions in session middleware for REST API endpoints.
Without it a server side session could be deleted, but can still be used at the REST API endpoints.
@FreddyDevelop FreddyDevelop merged commit d510fa5 into main Dec 5, 2024
8 checks passed
@FreddyDevelop FreddyDevelop deleted the fix-rest-api-endpoints branch December 5, 2024 09:08
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