Dry basic-auth middleware using Django's AUTHENTICATION_BACKENDS and "basicauth" lib
Requires to install "basicauth" package, which does basic-auth header encoding/decoding cleanly according to RFCs. Could be improved to return a "realm" in case of http401, like in https://djangosnippets.org/snippets/1720/, although I'm not sure it's really useful in django usecases.
- middleware
- basic
- authentication
- auth
- http-authorization