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

Fixing authentication #409

Closed kakulukia closed 6 years ago

kakulukia commented 6 years ago

not sending a request object is deprecated since Django 1.11 and this also broke Django Axes .. since the request is already in the context, thats an easy fix

kakulukia commented 6 years ago

Well, the serializer tests dont fill the request context in the same way as the JSONWebTokenAPIView is initializing its serializer .. BUT not sending a request object in the authenticate call is deprecated since Django 1.11. Sadly i dont know how to fake the request that easily otherwise i would fix the failing serializer test. Please somebody help me out here!?

jksimoniii commented 6 years ago

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