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.org/>`_
* `Security <https://django-sudo.readthedocs.org/en/latest/security/index.html>`_
* `Changelog <https://django-sudo.readthedocs.org/en/latest/changelog/index.html>`_

Project details


Download files

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

Source Distribution

django-sudo-1.2.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

django_sudo-1.2.1-py2.py3-none-any.whl (10.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-sudo-1.2.1.tar.gz.

File metadata

File hashes

Hashes for django-sudo-1.2.1.tar.gz
Algorithm Hash digest
SHA256 9949d546af6203c3c5c31b0648096a1cb7f55789046760f6a5f0446727991e6b
MD5 986d1eea4c30401a49488481b2250138
BLAKE2b-256 b8715df8655d708a198a28f0d7dd21f9030bf599e17e93733a5b8194d62d7498

See more details on using hashes here.

File details

Details for the file django_sudo-1.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_sudo-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b993a0eeb706549bbbb797f634a01bdd5514bc2b04bee5921c811ba7fe18c3c6
MD5 dc392c085f883bb0c883c7d9e2926231
BLAKE2b-256 53d83ee81218e6e7981164e6796af10bb0e3930cf8db047826773643b28d8ec0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page