Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Tivix/angular-django-registration-auth
This AngularJS module is designed to provide an authentication interface between a SPA (single page app), and a Django application running the Django REST Auth app. In addition to providing a client-side API, this module includes pages to support authentication and user profiles right out of the box.
https://github.com/Tivix/angular-django-registration-auth
Last synced: 3 months ago
JSON representation
This AngularJS module is designed to provide an authentication interface between a SPA (single page app), and a Django application running the Django REST Auth app. In addition to providing a client-side API, this module includes pages to support authentication and user profiles right out of the box.
- Host: GitHub
- URL: https://github.com/Tivix/angular-django-registration-auth
- Owner: Tivix
- Created: 2014-07-01T18:15:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-29T22:31:45.000Z (over 8 years ago)
- Last Synced: 2024-07-01T12:41:00.018Z (5 months ago)
- Language: JavaScript
- Homepage: http://www.tivix.com
- Size: 162 KB
- Stars: 202
- Watchers: 81
- Forks: 52
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
AngularJS Module for [Django REST Auth](https://github.com/Tivix/django-rest-auth)
==================================================================================To setup this module as a boilerplate project...
---------------------------------------------------##### First, clone the repository:
`git clone [email protected]:Tivix/angular-django-registration-auth.git`##### Change your directory to the cloned project:
`cd angular-django-registration-auth`##### Then, install the project prerequisites:
`npm install; bower install;`##### Customize API_URL and use_session to meet your project's requirements:
Go to `app/scripts/services/djangoAuth.js`###### If using django-rest-auth demo, check out the docs for a list of endpoints:
http://django-rest-auth.readthedocs.org/en/latest/api_endpoints.html##### Then, serve the Angular Django Registration Auth Demo:
`grunt serve`To integrate this module into an existing project...
-------------------------------------------------------##### First, clone the repository:
`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 angularDjangoRegistrationAuthApp into your own module.
##### Inject the djangoAuth service into any controllers in which you need programmatic access to Django REST Auth.
##### Customize API_URL and use_session to meet your project's requirements:
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.*###### Please note:
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.
Todo: We encourage contributions for these aims...
------------------------------------------------------ [ ] Add support for JWT (JSON web tokens)
- [ ] Better support for Bower and Grunt
- [ ] Pick a better name for the module?