eadwinCode/django-ninja-jwt

Integration with Django Ninja JWT

robertvy opened this issue · 5 comments

I'm facing an issue where Django Ninja JWT does not pass the request object during authentication. This is problematic when integrating with Django Axes, as Axes requires the request object to function correctly. As a workaround, a custom backend can bypass this requirement, but it essentially disables Axes' protection, defeating its purpose.

Could Django Ninja JWT be updated to ensure that the request object is passed during authentication?

For reference, see the related issue in Django Axes: django-axes issue #984.

@robertvy During authentication, request object is passed. See here ->

class JWTAuth(JWTBaseAuthentication, HttpBearer):

@robertvy I will look into this more deeply to understand what the problem is

This should be resolved in next release.

This should be resolved in next release.

@eadwinCode I've just tested the new release in my codebase and things seem to be working with Django Axes now. Thanks for looking into this so quickly !!

Awesome 😎