This package provides Digest Access Authentication support for Django REST framework.
HTTP Digest requires the server to be able to calculate a hash over the user's username, password, and your realm.
Since django.contrib.auth only stores a hash of the user's password, this cannot be used to authenticate HTTP Digest sessions. This package authenticates the session against the token provided by TokenAuthentication.
Install using pip, including any optional packages you want...
$ pip install djangorestframework-digestauth
...or clone the project from github.
$ git clone git@juanriaza/django-rest-framework-digestauth.git
$ cd django-rest-framework-digestauth
$ pip install -r requirements.txt
Check that TokenAuthentication is correctly installed.
This package provides the following authentication scheme:
rest_framework_digestauth.authentication.DigestAuthentication.
Follow the docs to set the authentication scheme and you're all done.
To run the tests against the current environment:
$ ./manage.py test rest_framework_digestauth
1st Feb 2012
- First release.
