Skip to content

To provide plugable django applications which integrates itself with Django's own authentication system, without breaking any existing django code. Current simultaneous authentications for: django.contrib.auth + Facebook authentication + Google+ authentication

subhranath/django-custom-auths

Repository files navigation

Django auth backends without breaking each other.
(django.contrib.auth + facebook auth + googleplus auth)

To provide plugable django applications which integrates itself with
Django's own authentication system, without breaking any existing django code.

A demo Django project to illustrate the working and implementation of different
custom authentication backends, in tandem with Django's own authentication
system, is included.

THIS IS A WORK IN PROGRESS, AND CURRENTLY NOT DOCUMENTED.

Currently supported, simultaneous auth backends:
-------------------------------------------------
- Usual Django login
- Login with Facebook (using Facebook Graph API)
- Login with Google+

Installing (Tryout)
-------------------
Just clone this repo and hit 'runserver', to try this out.

For Facebook app:
i) Create a facebook app from the facebook developers site (with redirect_uri as '/facebook/login/')
ii) Update settings.py with 'FACEBOOK_APP_ID' and 'FACEBOOK_APP_SECRET'.

For Google+ app:
i) Create a new application from the Google APIs Console (https://code.google.com/apis/console/),
with redirect uri specified to '/googleplus/login/' of your server.
ii) Use the 'client_id' and 'client_secret' obtained from step i, and make
appropriate changes in settings.py to update 'GOOGLEPLUS_CLIENT_ID' and
'GOOGLEPLUS_CLIENT_SECRET'.

About

To provide plugable django applications which integrates itself with Django's own authentication system, without breaking any existing django code. Current simultaneous authentications for: django.contrib.auth + Facebook authentication + Google+ authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages