Skip to main content

Extra security for your sensitive pages

Project description

https://img.shields.io/pypi/v/django-elevate.svg https://travis-ci.org/justinmayer/django-elevate.svg?branch=main https://coveralls.io/repos/github/justinmayer/django-elevate/badge.svg?branch=main
Elevate mode offers 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?

Elevate provides an extra layer of security beyond initial user authentication. Views can be decorated with @elevate_required, and then users must re-authenticate to access that resource. This might be useful for deleting objects, canceling subscriptions, and other sensitive operations. After re-authentication, the user has elevated permissions for the duration of ELEVATE_COOKIE_AGE. This duration is independent of the normal session duration, allowing for short elevated permission durations while still retaining long user sessions.

Installation

$ pip install django-elevate

Compatibility

  • Django 2.2, 3.1, and 3.2

  • Python 3.5 - 3.9

  • pypy3

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

Uploaded Source

Built Distribution

django_elevate-2.0.2-py2.py3-none-any.whl (10.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-elevate-2.0.2.tar.gz.

File metadata

  • Download URL: django-elevate-2.0.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.1

File hashes

Hashes for django-elevate-2.0.2.tar.gz
Algorithm Hash digest
SHA256 212986d56bdc9816299bd7ebdd968214a0e9c2633813bc7bc2b7851946752384
MD5 8d2c8a8c0ee7b8bc0c1a6083d2fb47f7
BLAKE2b-256 c00b016084bbe11c0c36fe14a42085830dfc424a3aa5ee6762c676a7e94c8c8e

See more details on using hashes here.

Provenance

File details

Details for the file django_elevate-2.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: django_elevate-2.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.1

File hashes

Hashes for django_elevate-2.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 15c55bab312b2e58418f4c583090779dc2c6d19b459f12ee9caca5b012e31035
MD5 eaa1374d49895235962024deb47aa28f
BLAKE2b-256 71bb3ce6129fa23384f8fa3b4f0820d5bd24774f62b1acc2c8a8dfa33e49cc17

See more details on using hashes here.

Provenance

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