Skip to content

feat: Introduce use_httponly_jwt_cookie method#723

Open
AbhijithKonnayil wants to merge 1 commit into
iMerica:masterfrom
AbhijithKonnayil:722-overrideable-use_httponly_jwt_cookie
Open

feat: Introduce use_httponly_jwt_cookie method#723
AbhijithKonnayil wants to merge 1 commit into
iMerica:masterfrom
AbhijithKonnayil:722-overrideable-use_httponly_jwt_cookie

Conversation

@AbhijithKonnayil
Copy link
Copy Markdown

@AbhijithKonnayil AbhijithKonnayil commented Dec 24, 2025

Add overrideable use_httponly_jwt_cookie() hook to LoginView

fixes #722

Summary

This PR introduces a small, backward-compatible extension point to LoginView that allows projects to decide per request whether JWT cookies should be marked as HttpOnly.

Instead of relying solely on the static JWT_AUTH_HTTPONLY setting, this change adds an instance method that can be overridden via subclassing, following standard Django REST Framework extension patterns.


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.

Feature Request: Overrideable use_httponly_jwt_cookie() Hook on LoginView

1 participant