Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Puts your staging site behind a basic auth layer.

Project Description

A very basic Basic Auth middleware that uses a username/password defined in your environment variable or settings.py to protect whole of your site. Does not use Django auth.

Handy for quickly securing an entire site during development, for example.

Note: Environment variables is preferred over settings.py.

Usage

# In settings.py:

MIDDLEWARE = [
    'django_auth_wall.middleware.BasicAuthMiddleware',

    # all other middleware here
]

# Optionally, set it here if not setting as environment variable
# Requires both variable to be set, else site won't be protected.
AUTH_WALL_USERNAME = 'user'
AUTH_WALL_PASSWORD = 'pass'

Installation

pip install django-auth-wall

Warning

Please make sure that you use SSL/TLS (HTTPS) to encrypt the connection between the client and the server, when using basic access authentication. In basic access authentication username and password are sent in cleartext, and if SSL/TLS is not used, the credentials could be easily intercepted.

Compatibility

  • Django 1.5+

Licence

MIT

Authors

django-auth-wall was written by Saurabh Kumar.

Release History

Release History

This version
History Node

0.2.0

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_auth_wall-0.2.0-py2.py3-none-any.whl (5.5 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Apr 26, 2017
django-auth-wall-0.2.0.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Apr 26, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting