Open lmores opened 8 years ago
I would also like a way to use this with non-class-based views, as my existing application does not use Django class-based-views, and I'd rather not rewrite them all just to be able to use JWT. I'll poke at it and see if I can bend it to my will.
Pull requests are welcome
@jpadilla Authentication backend is implemented in GetBlimp/django-rest-framework-jwt am i wrong or same functionality can be achieved for this repository by (almost) just copying it?
@ivanguy yup you're right.
+1 about this, but even more importantly it should be mentioned in the README that this is the Mixin is actually the way to protect a view, right?
I was trying to understand how I was supposed to actually protect a view and it was really not that clear..
thanks!
Hi, I've just discovered this extension of djangorestframework-jwt . I am wondering why the authentication is managed via
JSONWebTokenAuthMixin
and not using a custom authentication backend which would work fine with the@login_required
decorator.Thanks, Sirion