• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

django_sudo.egg-info/H03-May-2022-5543

sudo/H09-Jan-2020-408288

LICENSEH A D09-Jan-20201.5 KiB2822

MANIFEST.inH A D09-Jan-202047 21

PKG-INFOH A D09-Jan-20202.4 KiB5543

README.mdH A D09-Jan-20201.3 KiB3221

setup.cfgH A D09-Jan-2020133 149

setup.pyH A D09-Jan-20201.3 KiB4538

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