Skip to main content
Help us improve Python packaging – donate today!

Middleware to allow to deny access to particular URLs

Project Description

SiteAuth
--------
Middleware that applies Apache-like access control.

Add ``siteauth.middleware.SiteAuthenticationMiddleware`` after
``django.contrib.auth.middleware.AuthenticationMiddleware`` in
your ``MIDDLEWARE_CLASSES`` tuple.

Below are the settings:

- ``SITEAUTH_ACCESS_ORDER`` - either ``allow/deny`` or ``deny/allow``
(default)
- ``SITEAUTH_ALLOW_URLS`` - a list of regexes that explicitly allows
non-athenticated access
- ``SITEAUTH_DENY_URLS`` - a list of regexes that explicitly denies
non-authenticated access

Release history Release notifications

This version
History Node

1.1.0

History Node

1.0.0

History Node

0.9b1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-siteauth-1.1.0.tar.gz (3.2 kB) Copy SHA256 hash SHA256 Source None Sep 17, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page