Skip to content

About

Protect your sensitive Django views by requiring re-authentication

Topics

Resources

Contributing

Stars

49 stars

Watchers

4 watching

Forks

Repository files navigation

django-elevate

PyPI Version Build Status Documentation Status Code Coverage

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 4.2, 5.1, and 5.2
  • Python 3.9 - 3.13
  • pypy3

Resources

About

Protect your sensitive Django views by requiring re-authentication

Topics

Resources

Contributing

Stars

49 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages