Styria-Digital / django-rest-framework-jwt

JSON Web Token Authentication support for Django REST Framework
https://styria-digital.github.io/django-rest-framework-jwt/
MIT License
191 stars 57 forks source link

Axes Authentication backend #112

Open samaneh-kamalian opened 2 years ago

samaneh-kamalian commented 2 years ago

I use Axes as authentication backend, but when set AXES_FAILURE_LIMIT ==2 in first login attempt the obtain-jwt-token return 403, while it must return 400 and if I call obtain-jwt-token again, it must return 403. I do not have this problem with https://github.com/jpadilla/django-rest-framework-jwt !

samaneh-kamalian commented 2 years ago

Could anyone answer my question? I really stopped on it! :(

pinguin999 commented 2 years ago

Hi, do you got the login working with AXES? The AXES docs says TokenAuthentication is not supported at the moment. https://django-axes.readthedocs.io/en/latest/6_integration.html#integration-with-django-rest-framework

Also maybe your two = here: AXES_FAILURE_LIMIT ==2 are a problem?