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.11
  • Python 2.7, 3.6-3.7

Resources

Metadata

Release files for django-sudo 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sudo 3.1.0
File Size Uploaded Provenance
django-sudo-3.1.0.tar.gz 6.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sudo 3.1.0
File Interpreter ABI Platform
django_sudo-3.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 16.8 kB

Release files / django-sudo-3.1.0.tar.gz

Download URL django-sudo-3.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
671c9b819580d35688f2084e3f2cf60ebc1bfee7cbcf07882160ccf3fbb85a67
BLAKE2b-256 checksum
How to use checksums
ca639ad066bf7f9c3193fb1d9b8d8d926400acc32ea8d140fb27018bff5587b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

Release files / django_sudo-3.1.0-py2.py3-none-any.whl

Download URL django_sudo-3.1.0-py2.py3-none-any.whl
Size 9.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
fdd005910851def6cd0a2a121a9a41c98b714c345faaaf74fbb75bd95f2f5959
BLAKE2b-256 checksum
How to use checksums
1b05decb22ca87ce702bf7d3e1fda5579e60a1b7ea4ea4520233f311d5802ec1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

Security for django-sudo 3.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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