Django Middleware for handling proxied ssl
Project description
Introduction
This module provides a Django middleware class, proxiedssl.middleware.ProxiedSslWsgiMiddleware, that looks for one of two headers and sets the WSGI URL scheme to the value of the header. This allows a proxy server that handles SSL to notify the Django WSGI request handler that the end user is accessing the site through SSL.
Installation
Add proxiedssl.middleware.ProxiedSslWsgiMiddleware to the MIDDLEWARE_CLASSES tuple in your settings file. It would be best if it was first so that the is_secure method is accurate for the other middleware classes.
Requirements
Django and you currently must be using the WSGI handler either through a WSGI server or through the FCGI server which is a wrapper around the WSGI server.
TODO
Add a middleware class for the mod_python handler
Add full unit tests
0.1.1 (2012/01/05)
Added debug logging output for all possibilities
0.1 (2011/04/18)
Initial code
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file proxiedssl-0.1.1.tar.gz
.
File metadata
- Download URL: proxiedssl-0.1.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1cafe7e93e4560d6ad029a815f33d61308b09538d4bf941bb9d63096e700401 |
|
MD5 | 5b3d7258b1b8088f3e6e4d3e8e8ebaa2 |
|
BLAKE2b-256 | 69e203718ce288a7b2ac483653bb1d7ce1373aee13f55c6889b5208aaae11cf0 |
File details
Details for the file proxiedssl-0.1.1-py2.6.egg
.
File metadata
- Download URL: proxiedssl-0.1.1-py2.6.egg
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c350b360999010c3ff0ffa6cfe23fb3bd69c4009f51e9c06d4c1e0ed86cbc363 |
|
MD5 | 264690e65f19dc8d1357711619c48b77 |
|
BLAKE2b-256 | bf5d3ddff6b2fe71ac4174a120f1c3fbf44425e9b0711daa633ac5fa4c967bec |