skip to navigation
skip to content

django-rest-auth 0.2

Create a set of REST API endpoints for Authentication and Registration

Latest Version: 0.9.2

[![Build Status](](


Since the introduction of django-rest-framework, Django apps have been able to serve up app-level REST API endpoints. As a result, we saw a lot of instances where developers implemented their own REST registration API endpoints here and there, snippets, and so on. We aim to solve this demand by providing django-rest-auth, a set of REST API endpoints to handle User Registration and Authentication tasks. By having these API endpoints, your client apps such as AngularJS, iOS, Android, and others can communicate to your Django backend site independently via REST APIs for User Management. Of course, we'll add more API endpoints as we see the demand.

1. User Registration with activation
2. Login/Logout
3. Retrieve/Update the Django User & user-defined UserProfile model
4. Password change
5. Password reset via e-mail


1. This project needs the following packages

> django-registration>=1.0
> djangorestframework>=2.3.13

2. Install this package

3. Add rest_auth app to INSTALLED\_APPS in your django


4. This project depends on django-rest-framework library, therefore the following REST_FRAMEWORK settings needs to be entered in your Django



5. Lastly, this project accepts the following Django setting values. You can set the UserProfile model and/or create your own REST registration backend for django-registration

REST_REGISTRATION_BACKEND = 'rest_auth.backends.rest_registration.RESTRegistrationView'
REST_PROFILE_MODULE = 'accounts.UserProfile'

6. Add rest_auth urls in your project root

urlpatterns = patterns('',
(r'^rest-auth/', include('rest_auth.urls')),

7. You're good to go now!

API endpoints without Authentication

1. /rest-auth/register/
- username
- password
- email
- first\_name
- last\_name
2. /rest-auth/password/reset/
- email
3. /rest-auth/password/reset/confirm/{uidb64}/{token}/
- new\_password1
- new\_password2
4. /rest-auth/login/
- username
- password
5. /rest-auth/verify-email/{activation\_key}/

API endpoints with Authentication

1. /rest-auth/logout/
2. /rest-auth/user/
- POST parameters
- user as dictionary
- user-defined UserProfile model fields
- user data example
"user": {"id": 1, "first_name": "Person", "last_name": "2"}

3. /rest-auth/password/change/
- new\_password1
- new\_password2  
File Type Py Version Uploaded on Size
django-rest-auth-0.2.tar.gz (md5) Source 2014-05-07 11KB