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=master https://coveralls.io/repos/github/justinmayer/django-elevate/badge.svg?branch=master
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

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

Uploaded Source

Built Distribution

django_elevate-2.0.0-py2.py3-none-any.whl (10.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-elevate-2.0.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.1

File hashes

Hashes for django-elevate-2.0.0.tar.gz
Algorithm Hash digest
SHA256 acc60032844b82bb675cbd3cf4ce131e1ce7078ebac2914b4583aa66c2eb3f16
MD5 71ad360573ead70609410a4925c16d64
BLAKE2b-256 d0827f2abf7234c68c409178eaa14bf12cd3b4beade79196b9b06326e4f1f051

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: django_elevate-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.1

File hashes

Hashes for django_elevate-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6bb0925106e2fe4f1b4906d39cf398184f1d57e81713c71fb1dc863bdeacb002
MD5 87b373370c4e04387f2bad5429acc75f
BLAKE2b-256 25977bf7c7c6a5e05187f01edbe41daef78877dbfadee29d359d17964d7ae973

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