Coder Social home page Coder Social logo

d51_django_auth's Introduction

d51_django_auth

This is a package that'll eventually hook into all of the popular means of distributed authentication. The first pass is Facebook Connect, which works.

Installation notes

'''TODO'''

AUTHENTICATION_BACKENDS = (
    'd51_django_auth.backends.FacebookConnectBackend',
    'django.contrib.auth.backends.ModelBackend',
)

How to run the tests

d51_django_auth is a Django application, so it needs Django and a few various third-party libraries to run. This repository ships with the scripts necessary for buildout to build the various pieces necessary for testing.

To run the tests, clone the repository, change into the repository directory and run the following commands:

prompt> python bootstrap.py
... will initialize buildout ...
prompt> bin/buildout
... will take a few minutes while it downloads Django ...
prompt> bin/django test d51_django_auth

You can also test it directly inside your Django project, by adding d51_django_auth to the INSTALLED_APPS setting and running the following command:

prompt> python manage.py test d51_django_auth

Known Issues

This is one day's work, hardly enough time to know what issues there are. It's in the "works for me" category of code.

That said, I've yet to look at how to adjust the included admin's logout button to work. If you're interested in tackling it, you need to add an onclick handler that calls FB.Connect.logoutAndRedirect() and pass in the href for the admin.

d51_django_auth's People

Contributors

natehaas avatar tswicegood avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.