Registry / auth-security / django-rest-auth

django-rest-auth

JSON →
library0.9.5pypypiunverified

Django-rest-auth provides a set of REST API endpoints for authentication and registration in Django projects using Django REST Framework. Version 0.9.5 is the latest release, but the library is in maintenance mode with no active development; it is superseded by dj-rest-auth.

pip install django-rest-auth==0.9.5
INSTALL
IMPORT
SIG · DJANGO-REST-AUTH
D
django-rest-auth
auth-securitypythonv0.9.5
Install
4.8s avg
Import
Disk
72MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.9.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 72.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.8s · import 0.000s · 73MB
72MB installed
● package 72MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LoginView
from rest_auth.views import LoginView
from rest_auth.views import LoginView

Minimal setup to add REST auth endpoints.

# settings.py INSTALLED_APPS = [ 'django.contrib.sites', 'allauth', 'allauth.account', 'rest_auth', 'rest_framework', ] SITE_ID = 1 # urls.py from django.urls import path, include urlpatterns = [ path('rest-auth/', include('rest_auth.urls')), ] # Then run python manage.py migrate
Debug
Known issues
gotchaThis library is no longer actively maintained; consider using dj-rest-auth instead.
fix
Replace django-rest-auth with dj-rest-auth and update import paths (from rest_auth to dj_rest_auth).
affects: all
breakingIn Django 3.0+, the on_delete argument is required for ForeignKey fields; django-rest-auth's internal models may cause migration issues.
fix
Add on_delete=models.CASCADE to any custom models or use dj-rest-auth which has updated support.
affects: 0.9.5
gotchaSocial authentication requires additional endpoints and configuration with django-allauth; default URLs do not include social login.
fix
Use rest_auth.urls or include rest_auth.social_urls and set up social apps in Django admin.
affects: all
deprecatedThe old JWT support via django-rest-framework-jwt is deprecated and incompatible with newer Django REST Framework versions.
fix
Use dj-rest-auth with djangorestframework-simplejwt instead.
affects: 0.9.x
Upgrade
Version history
0.9.5latest on PyPI · released Apr 1, 2019
Audit
Dependencies
djangorequiredCore framework
djangorestframeworkrequiredREST framework
django-allauthrequiredRegistration and social auth
Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
django-rest-auth — pip install django-rest-auth · libregistry