Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Secure Cookie Auth module for Django
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
djcookieauth
.gitignore
LICENSE
MANIFEST.in
NOTICE
README.rst
setup.py

README.rst

dj-cookieauth

Simple secure cookie authentication.

Install

$ python setup.py install

Configure

Add djcookieauth.middleware.CookieAuthMiddleware to your middlewares:

MIDDLEWARE_CLASSES = (
    ...
    'djcookieauth.middleware.CookieAuthMiddleware'
)

Add djcookieauth to your installed:

INSTALLED_APPS = (
    ...
    'djcookieauth'
)

Add urls.py to your url and set the login and logout url to the login view in djcookieauth.view . And voilà.

Note: If you want sha256 encoded password, add these lines on top of your settings.py:

from djcookieauth.auth import patch_auth
patch_auth()
Something went wrong with that request. Please try again.