Skip to content

Django application that provides drop-in integration with the Mozilla Account Manager

Notifications You must be signed in to change notification settings

paulosman/django-accountmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-accountmanager

Django application that provides drop-in support for the Mozilla Account Manager addon. It's not quite usable yet. Stay tuned.

Requirements

In order to use django-accountmanager, you will need to install:

Installation

Install django-accountmanager from the git repository:

pip install -e git://github.com/paulosman/django-accountmanager#egg=accountmanager

Add django-accountmanager to your INSTALLED_APPS in settings.py after wellknown:

INSTALLED_APPS = (
    ...
    'wellknown',
    ...
    'accountmanager',
    ...
)

Add accountmanager.middleware.StatusHeader to MIDDLEWARE_CLASSES in settings.py:

MIDDLEWARE_CLASSES = (
   ...
   'accountmanager.middleware.StatusHeader',
   ...
)

Configure urls.py in your project:

urlpatterns = patterns('',
    ...
    (r'^accountmanager/', include('accountmanager.urls'))
)

Configure account manager control document settings in settings.py:

AMCD_CONFIG = {
    'connect': {
        'method': 'POST',
        'path_view': 'users.views.login',
        'params': {
            'username': 'username',
            'password': 'password'
        }
    },
    'disconnect': {
        'method': 'GET',
        'path_view': 'users.views.logout'
    }
}

Optionally specify custom reverse function in settings.py:

AMCD_RESOLVER_FUNCTION = 'l10n.urlresolvers.reverse'

About

Django application that provides drop-in integration with the Mozilla Account Manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published