mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-04-22 17:52:14 +03:00
This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
Django allows to define custom username field through [USERNAME_FIELD](https://docs.djangoproject.com/en/1.9/topics/auth/customizing/#django.contrib.auth.models.CustomUser.USERNAME_FIELD) on custom user model. In that case there will be no `username` field so it is wrong to assume that the username field will always be present. Simplified the `vaidate` as it is safe to use `authenticate` function from `django.contrib.auth` because it takes care of `AUTHENTICATION_BACKENDS` listed in settings. And if `allauth` is in `INSTALLED_APPS` then `allauth.account.auth_backends.AuthenticationBackend` will be there as well. |
||
---|---|---|
demo | ||
docs | ||
rest_auth | ||
.gitignore | ||
.travis.yml | ||
AUTHORS | ||
flake8 | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
runtests.py | ||
setup.py |
Welcome to django-rest-auth =========================== .. image:: https://travis-ci.org/Tivix/django-rest-auth.png :target: https://travis-ci.org/Tivix/django-rest-auth .. image:: https://coveralls.io/repos/Tivix/django-rest-auth/badge.png :target: https://coveralls.io/r/Tivix/django-rest-auth?branch=master .. image:: https://readthedocs.org/projects/django-rest-auth/badge/?version=latest :target: https://readthedocs.org/projects/django-rest-auth/?badge=latest Django-rest-auth provides a set of REST API endpoints for Authentication and Registration Documentation ------------- http://django-rest-auth.readthedocs.org/en/latest/ Source code ----------- https://github.com/Tivix/django-rest-auth Stack Overflow ----------- http://stackoverflow.com/questions/tagged/django-rest-auth