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

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.1.0.tar.gz (6.9 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.1.0-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: django-sudo-3.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django-sudo-3.1.0.tar.gz
Algorithm Hash digest
SHA256 671c9b819580d35688f2084e3f2cf60ebc1bfee7cbcf07882160ccf3fbb85a67
MD5 dfec4ef2010b425f250f93418326ef7e
BLAKE2b-256 ca639ad066bf7f9c3193fb1d9b8d8d926400acc32ea8d140fb27018bff5587b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_sudo-3.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for django_sudo-3.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fdd005910851def6cd0a2a121a9a41c98b714c345faaaf74fbb75bd95f2f5959
MD5 a2fa77e7b4eccbe72722c04bc96b0328
BLAKE2b-256 1b05decb22ca87ce702bf7d3e1fda5579e60a1b7ea4ea4520233f311d5802ec1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 files

3.0.0

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page