Skip to content

HeadspaceMeditation/django-rest-framework-digestauth

 
 

Repository files navigation

Django Rest Framework DigestAuth

NOTE: This repo is now deprecated for Headspace.

The module rest_framework_digestauth is now located in the repo ginger-django-commons here: rest_framework_digestauth

Build Status

Overview

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.

Installation

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

How to use it?

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.

Running the tests

To run the tests against the current environment:

$ ./manage.py test rest_framework_digestauth

Changelog

1.1.0

31th Jan 2014

  • Added Python 3 support (thanks to @defrex).

1.0.0

1st Feb 2012

  • First release.

About

Digest HTTP auth for Django REST framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%