humanitec / django-oauth-toolkit-jwt

django-oauth-toolkit extension that adds JWT support
MIT License
38 stars 26 forks source link

Make user attribute configurable #19

Closed tobias-reese closed 5 years ago

tobias-reese commented 5 years ago

Using the username attribute of users in JWT Payloads might be ok for most situations. But i like to be able to choose other attributes of the user for identification. This especially is true for custom user models where for example guid's or similar exist.

I've added a pull request for review.