Home:ALL Converter>allowing django-oauth-toolkit to issue jwt instead of random strings

allowing django-oauth-toolkit to issue jwt instead of random strings

Ask Time:2019-02-11T12:21:59         Author:vee

Json Formatter

I understand that django-oauth-toolkit is using oauthlib and oauthlib provides an example on the implementation of using jwt instead of random strings.

However, I don't understand how I can get django-oauth-toolkit to issue jwt instead of random strings. Can anyone give an example implementation or git repo on how we can do this?

path('o/', include('oauth2_provider.urls', namespace='oauth2_provider')),

I am not sure how we can change the views in that import lines to customise it to allow jwts

Author:vee,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/54623930/allowing-django-oauth-toolkit-to-issue-jwt-instead-of-random-strings
yy