mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 09:06:40 +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)
1af16ae7ba
Added a serializer for twitter OAuth to work. If you are not using this it will cause an error ('TwitterOAuthAdapter' object has no attribute 'parse_token'). It happens because method parse_token() is implemented in OAuth2Adapter, but Twitter uses OAuth 1.0, so TwitterOAuthAdapter inherits from OAuthAdapter, which doesn't have parse_token() method. Example usage is given below: class TwitterLogin(LoginView): serializer_class = TwitterLoginSerializer adapter_class = TwitterOAuthAdapter |
||
---|---|---|
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