Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django API quickstart uses unmaintained package #9825

Open
jlucas91 opened this issue Jul 20, 2021 · 2 comments
Open

Django API quickstart uses unmaintained package #9825

jlucas91 opened this issue Jul 20, 2021 · 2 comments

Comments

@jlucas91
Copy link

jlucas91 commented Jul 20, 2021

Description

The Django API quickstart guide uses a package that's been unmaintained for two years. This was a pretty unpleasant surprise to find after implementing an initial Auth0 integration.

Reproduction

https://auth0.com/docs/quickstart/backend/django/01-authorization . drf-jwt is unmaintained and has been for two years.

See: jpadilla/django-rest-framework-jwt#484

Environment

N/A

@jlucas91
Copy link
Author

jlucas91 commented Jul 20, 2021

Further - as far as I can tell the recommendation to add the RemoteUserMiddleware has no effect. The RemoteUserMiddleware looks for a REMOTE_USER header - which is almost certainly not set by the application making the request.

The actual change that matters here is the RemoteUserBackend addition. That, in combination with the authenticate() call in jwt_get_username_from_payload_handler, creates/logs in the user based solely on username.

@ElRoberto538
Copy link

The current version of drf-jwt on PyPi is maintained, and the latest release was only a couple of months ago. It has been forked from the Repo you listed. https://pypi.org/project/drf-jwt/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants