tomchristie/django-rest-framework — pull request #226 by mfogel (2012-07-08 04:52:32+00:00)
Title: Make authentication.BasicAuthentication more amenable to overriding

Hi Tom, in authentication.BasicAuthentication the authenticate() method does two general things:

* it parses the http basic auth headers
* it uses that info to authenticate against django's default User object

This pull request adds and uses a BasicAuthentication.extract_credentials method which handles the parsing of the http basic auth headers. This allows subclasses to use just this http header parsing functionality - useful if you're not authenticating against django's default User object.

Thanks, cheers.