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 649 forks source link

Provide `request` to contrib.auth.authenticate in serializers #387

Open gtnx opened 6 years ago

gtnx commented 6 years ago

In Django 1.11, django.contrib.auth.authenticate takes the current request as an argument. JSONWebTokenSerializer should support that.

jksimoniii commented 6 years ago

Addressed https://github.com/GetBlimp/django-rest-framework-jwt/pull/412