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>`_
===========
.. 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 | 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
django-sudo-2.1.0.tar.gz
(8.1 kB
view details)
Built Distribution
File details
Details for the file django-sudo-2.1.0.tar.gz
.
File metadata
- Download URL: django-sudo-2.1.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 375a3100127dfcf49f24184ca25a1c84178470d6918c6a88e63472de030047a6 |
|
MD5 | 3e0c92e7bc287979bb179c7ce93a91a6 |
|
BLAKE2b-256 | 231eccc9259ea7c9b6bc3e4cce20edd94f165c94701b09d4c555f332c844fa01 |
File details
Details for the file django_sudo-2.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_sudo-2.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d4ce92e44eeb458de5e696421d0eb6eaa47a9082898a3d40cc4bf780a6fdc4c |
|
MD5 | f8d9ce9868bbf0d3d1285a8c239b4df6 |
|
BLAKE2b-256 | a28910a6e48ced1bf78ccd18c8b291a6a04906a8ad8950894b43929adb5f2ff5 |