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
- Host: GitHub
- URL: https://github.com/benoitc/dj-cookieauth
- Owner: benoitc
- License: mit
- Created: 2011-01-17T17:40:43.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-01-17T17:41:51.000Z (about 15 years ago)
- Last Synced: 2025-03-17T11:52:30.609Z (12 months ago)
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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()