Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
django_sudo.egg-info/ | H | 03-May-2022 | - | 55 | 43 | |
sudo/ | H | 09-Jan-2020 | - | 408 | 288 | |
LICENSE | H A D | 09-Jan-2020 | 1.5 KiB | 28 | 22 | |
MANIFEST.in | H A D | 09-Jan-2020 | 47 | 2 | 1 | |
PKG-INFO | H A D | 09-Jan-2020 | 2.4 KiB | 55 | 43 | |
README.md | H A D | 09-Jan-2020 | 1.3 KiB | 32 | 21 | |
setup.cfg | H A D | 09-Jan-2020 | 133 | 14 | 9 | |
setup.py | H A D | 09-Jan-2020 | 1.3 KiB | 45 | 38 |
README.md
1# django-sudo 2 3[![](https://travis-ci.org/mattrobenolt/django-sudo.svg?branch=master)](https://travis-ci.org/mattrobenolt/django-sudo) [![](https://coveralls.io/repos/mattrobenolt/django-sudo/badge.png?branch=master)](https://coveralls.io/r/mattrobenolt/django-sudo?branch=master) 4 5> Sudo mode is an extra layer of security for your most sensitive pages.<br> 6> This is an implementation of GitHub's [Sudo Mode](https://github.com/blog/1513-introducing-github-sudo-mode) for [Django](https://www.djangoproject.com/). 7 8## What is this for? 9 10`django-sudo` provides an extra layer of security for after a user is already logged in. Views can 11be decorated with `@sudo_required`, and then a user 12must re-enter their password to view that page. After verifying their password, that user has 13elevated permissions for the duration of `SUDO_COOKIE_AGE`. This duration is independent of the 14normal session duration allowing short elevated permission durations, but retain long user sessions. 15 16## Installation 17 18```console 19$ pip install django-sudo 20``` 21 22## Compatibility 23 24* Django 1.9-1.11 25* Python 2.7, 3.6-3.7 26 27## Resources 28 29* [Documentation](https://django-sudo.readthedocs.io/) 30* [Security](https://django-sudo.readthedocs.io/en/latest/security/index.html) 31* [Changelog](https://django-sudo.readthedocs.io/en/latest/changelog/index.html) 32