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>`_
===========
.. 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
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-1.3.0.tar.gz
(7.5 kB
view details)
Built Distribution
File details
Details for the file django-sudo-1.3.0.tar.gz
.
File metadata
- Download URL: django-sudo-1.3.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d658e210e392bc44d36802218c29d411bf55cfe80d36b3fdf617c9ec8b37b43 |
|
MD5 | 08ea6387741af38f0da95b5e1bb8937f |
|
BLAKE2b-256 | c54a8dffed25b6cfaeea7faf48105793939fb893fd779db31231212661237713 |
File details
Details for the file django_sudo-1.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_sudo-1.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ebc8663a6b57c5f16506bfc22b29e3a21c27c98b2e0f7b5ff07d00aaa6d9bb9 |
|
MD5 | 009a84c4e24da441412216b31dd6fe2a |
|
BLAKE2b-256 | a2b35b520041e05d7443d986a657bd7b1076685bd86dcec755851aa9d67f7794 |