Hi, You might want check out django-restframework-simplejwt. It requires the Django Rest Framework. But, then again, if you are making an API, you'd already be using it.
Regards, Abhijeet On Thu, 16 Apr, 2020, 00:39 Claude Paroz, <cla...@2xlibre.net> wrote: > Hi all, > > With the recent addition of the algorithm parameter to the signing.Signer > class, it's now rather straightforward for Django to generate HS256 > (non-encrypted) JSON Web Tokens. > With a growing popularity of JS-client/Django server communications (DRF > and al.), I think there might be some interest for Django to be able to > generate and decode such tokens. For any other types of JWTs which > generally require access to a cryptography module, we can point users to > third-party libs like PyJWT (the docs should be clear about that). > > I made a proof-of-concept PR (docs missing) here: > - https://github.com/django/django/pull/12728 > > What people here think about that proposal? > > Claude > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/5f67fefb-d158-4722-b704-6c34d72692a8%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/5f67fefb-d158-4722-b704-6c34d72692a8%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAP1-Yrqiryo%2BuapQHkLjebwP7aaOQ8igSx3_cr6Q1Q16bKgaRw%40mail.gmail.com.