jpadilla / django-rest-framework-jwt

JSON Web Token Authentication support for Django REST Framework
http://jpadilla.github.io/django-rest-framework-jwt/
MIT License
3.19k stars 652 forks source link

When JWT_AUTH_COOKIE is set to True, unable to refresh and validate #377

Open c0dezli opened 7 years ago

c0dezli commented 7 years ago

Because in serializers.py

.....
class RefreshJSONWebTokenSerializer(VerificationBaseSerializer):
    """
    Refresh an access token.
    """

    def validate(self, attrs):
        token = attrs['token']
        ....

It only read token from request.data

ghost commented 6 years ago

Set it to a string like "JWT", you're just setting the name of the cookie here.

steverecio commented 5 years ago

Anyone find a solution to this? @C0deZLee

evrenbingol commented 4 years ago

https://stackoverflow.com/questions/56587690/django-rest-framework-using-httponly-cookie/56587799#56587799