Skip to main content

Extra security for your sensitive pages

Project description

django-sudo

Sudo mode is an extra layer of security for your most sensitive pages.
This is an implementation of GitHub's Sudo Mode for Django.

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

$ pip install django-sudo

Compatibility

  • Django 1.9-1.10
  • Python 2.7, 3.6-3.7

Resources

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-3.0.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

django_sudo-3.0.0-py2.py3-none-any.whl (10.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-sudo-3.0.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3

File hashes

Hashes for django-sudo-3.0.0.tar.gz
Algorithm Hash digest
SHA256 b1e49670da72d5e439a002c781ebbecb8deac144798668f7bebd1781e529d7f2
MD5 0f9cf3bc5718c53ca4dc32f471d45c8a
BLAKE2b-256 d3931f72b19eef696365b6448e143978877495f65880a8c39c983e56beecb495

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_sudo-3.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3

File hashes

Hashes for django_sudo-3.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 186bb1b4e262e729f3c3aceefca92915df5d06c8401294f3a6feb91ea8605e88
MD5 d60990d6dcb24eae7cd2827415895671
BLAKE2b-256 0342d0a1308b8780cfb9b54373dd2757202b17a3f1bf6831369b4d09f29179ef

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