Skip to main content

Extra security for your sensitive pages

Project description

django-sudo
===========

.. image:: https://travis-ci.org/mattrobenolt/django-sudo.svg?branch=master
:target: https://travis-ci.org/mattrobenolt/django-sudo

.. image:: https://coveralls.io/repos/mattrobenolt/django-sudo/badge.png?branch=master
:target: https://coveralls.io/r/mattrobenolt/django-sudo?branch=master

..

| Sudo mode is an extra layer of security for your most sensitive pages.
This is an implementation of GitHub's `Sudo Mode
<https://github.com/blog/1513-introducing-github-sudo-mode>`_ for `Django
<https://www.djangoproject.com/>`_.

What is this for?
~~~~~~~~~~~~~~~~~
``django-sudo`` provides an extra layer of security for after a user is already logged in. Views can
be decorated with ``@sudo_required``, and then a user
must re-enter their password to view that page. After verifying their password, that user has
elevated permissions for the duration of ``SUDO_COOKIE_AGE``. This duration is independent of the
normal session duration allowing short elevated permission durations, but retain long user sessions.

Installation
~~~~~~~~~~~~

.. code-block:: console

$ pip install django-sudo

Compatibility
~~~~~~~~~~~~~
* Django 1.4-1.9
* Python 2.6-3.5
* pypy

Resources
~~~~~~~~~
* `Documentation <https://django-sudo.readthedocs.io/>`_
* `Security <https://django-sudo.readthedocs.io/en/latest/security/index.html>`_
* `Changelog <https://django-sudo.readthedocs.io/en/latest/changelog/index.html>`_

Project details


Release history Release notifications

This version
History Node

2.1.0

History Node

2.0.1

History Node

1.3.0

History Node

1.2.1

History Node

1.2.0

History Node

1.1.3

History Node

1.1.2

History Node

1.1.1

History Node

1.1.0

History Node

1.0.0

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

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_sudo-2.1.0-py2.py3-none-any.whl (11.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jul 26, 2016
django-sudo-2.1.0.tar.gz (8.1 kB) Copy SHA256 hash SHA256 Source None Jul 26, 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