-
Notifications
You must be signed in to change notification settings - Fork 324
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
With USE_JWT and blacklist app, logout fail with JWT_HTTP_ONLY #541
Comments
EDIT - Realized when I looked at this I missed that this was this library's source 🤦 That's the idea behind HttpOnly cookies, the app doesn't handle them, the server and the browser do - and they are sent on each request to the server automatically. In the Django request object, there is a request.COOKIES['token'] A simple edit to the APIView to have an if condition there should do the trick, I'll test that. |
I've opened a PR to address this one @iMerica |
Fix has merged to master, pending release. |
Can this be closed? I see its released. |
On line https://github.com/iMerica/dj-rest-auth/blob/master/dj_rest_auth/views.py#L181 the code look for the refresh token into the data, but with HTTP_ONLY, the token can be found only in cookies.
Is it by design (no need to blacklist the refresh cookie in this case) or should the code look into both data and cookies?
The text was updated successfully, but these errors were encountered: