- Defer IP detection to the user (breaking)
- Add Django 5.0 compatibility
- Transfer ownership to Torchbox
- Make default response use "never cache" header.
- Add Django 4.0 support.
- Fix potential timing attack if basic authentication is enabled (GHSA-m38j-pmg3-v5x5).
- Do not include tests in the package.
- Add BASIC_AUTH_DISABLE_CONSUMING_AUTHORIZATION_HEADER setting.
- Add Django 3 support.
- Include HTML and textual files in the package.
- Delete "Authorization" header when it is used by the middleware.
- Use CF-Connecting-IP HTTP header for checking the client's IP address.
- Add BASIC_AUTH_WHITELISTED_PATHS setting.
- Don't crash on wrong authorization header format.
- Add support for old-fashioned MIDDLEWARE_CLASSES.
- Add overall Django 1.8, 1.9, 1.10 and 1.11 support.
- Use HttpRequest.get_host instead of HTTP_HOST.
- Add HTTP host header whitelist (
BASIC_AUTH_RESPONSE_TEMPLATE
). - Add the
BASIC_AUTH_REALM
setting. - Add the
BASIC_AUTH_RESPONSE_TEMPLATE
setting. - Add the
BASIC_AUTH_RESPONSE_CLASS
setting. - Add an option to skip the middleware by setting
_skip_basic_auth_ip_whitelist_middleware_check
attribute on the request.