An open API service indexing awesome lists of open source software.

https://github.com/benoitc/dj-cookieauth

Secure Cookie Auth module for Django
https://github.com/benoitc/dj-cookieauth

Last synced: 7 months ago
JSON representation

Secure Cookie Auth module for Django

Awesome Lists containing this project

README

          

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()