Socket
Socket
Sign inDemoInstall

proxiedssl

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxiedssl

Django Middleware for handling proxied ssl


Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc