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, 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.1.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

django_elevate-2.0.1-py2.py3-none-any.whl (10.5 kB view hashes)

Uploaded Python 2 Python 3

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