• Stars
    star
    202
  • Rank 192,518 (Top 4 %)
  • Language
    JavaScript
  • Created about 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

AngularJS Module for 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?

More Repositories

1

django-rest-auth

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)
Python
2,400
star
2

django-cron

Write cron business logic as a Python class and let this app do the rest! It enables Django projects to schedule cron tasks, tracks their success / failures, manages contention (via a cache) etc. Basically takes care of all the boring work for you :-)
Python
886
star
3

django-common

Common things every Django project needs :-) It provides lot of helper functions, commonly used middlewares, context processors, custom email/auth backends, session helpers etc.
Python
221
star
4

django-braintree

Django + Braintree Payment Solutions = $$$
Python
61
star
5

django-spam

🍔 Django application that redirects potential intruders and spam bots to '10 hours of' videos
Python
43
star
6

wagtail-blog-app

A blog application for the Wagtail Django CMS
Python
38
star
7

strapless

Strapless is a color-changing CSS boilerplate for HTML elements, and a powerful LessCSS library for colors and patterns.
CSS
27
star
8

AngularJSPractices

A collection of examples and best practices for AngularJS projects
JavaScript
15
star
9

docker-nginx

Nginx docker image with dynamic settings
Jinja
12
star
10

k8s-ecr-secret

Create kubernetes secret for ECR based docker registry
Shell
9
star
11

django-flatpages-nav

Manage your flatpages much more easily using this app.
Python
9
star
12

satchmo-braintree

Payment module for Satchmo that integrates with the Braintree Payment Solutions gateway.
Python
9
star
13

django-collections

Python
7
star
14

django-rest-common

Python
7
star
15

terraform-modules

Terraform modules crafted for internal Tivix usage
HCL
3
star
16

js-standard-prettier-config

3
star
17

helm-action

A Github Helm action. Lets you parametrize Helm values using env vars, and tail logs during deployment.
Python
3
star
18

container-kit

🐳 lightweight kitematic app built with electron/react
JavaScript
3
star
19

terraform-base

HCL
2
star
20

docker-over-ssh

Shell
1
star
21

django-crone-demo

Demo app for django-crone
Python
1
star
22

wagtail-extras

Python
1
star
23

js-standard-eslint-config

JavaScript
1
star
24

js-standard-stylelint-config

JavaScript
1
star
25

js-standard-typescript-config

1
star
26

docker-fluentd

Fluentd image with extra plugins
Shell
1
star
27

hygen-test-templates

This is a place for templates that can be reused across all projects - cypress & python/selenium
EJS
1
star
28

gmail-smart-light-integration

basic notification python script, which changes the light color upon receiving new emails, made for remote work environment, can be customized further depending upon needs.
Python
1
star
29

docker-jslinter

JS linter image with eslint and others
Dockerfile
1
star
30

aws_secret

AWS Secret wrapper
Python
1
star