Skip to main content

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

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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 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.

Release history Release notifications | RSS feed

3.1.0

2 files

This release

3.0.0 This release

2 files

2.1.0

2 files

2.0.1

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page