Skip to content

Middleware that allows for site-wide URL-based access control

Notifications You must be signed in to change notification settings

thayerj/django-siteauth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Middleware that allows for site-wide URL-based access control

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%