AngularJS Module for Django REST Auth
git clone [email protected]:Tivix/angular-django-registration-auth.git
cd angular-django-registration-auth
npm install; bower install;
Go to app/scripts/services/djangoAuth.js
http://django-rest-auth.readthedocs.org/en/latest/api_endpoints.html
grunt serve
git clone [email protected]:Tivix/angular-django-registration-auth.git
The contents of the app/scripts
folder can be copied to your own project.
Exclude controllers and app.js if you do not intend to use the default views/routes. (This will provide API access from the djangoAuth module only.)
Inject the djangoAuth service into any controllers in which you need programmatic access to Django REST Auth.
Go to app/scripts/services/djangoAuth.js
Alternatively, you can change these settings from a controller by changing the djangoAuth.API_URL and djangoAuth.use_session variables.
you will need to include dependencies from bower.json to support the default views/controllers. They require bootstrap and its dependencies to function correctly. If you intend to use the default views/routes, copy the contents of app/views to your own views folder.
-
Add support for JWT (JSON web tokens)
-
Better support for Bower and Grunt
-
Pick a better name for the module?