-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d5bab7
commit a1ae0cc
Showing
5 changed files
with
35 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include setup.py README.rst MANIFEST.in LICENSE | ||
include setup.py README.md MANIFEST.in LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# django-sudo | ||
|
||
[![](https://travis-ci.org/mattrobenolt/django-sudo.svg?branch=master)](https://travis-ci.org/mattrobenolt/django-sudo) [![](https://coveralls.io/repos/mattrobenolt/django-sudo/badge.png?branch=master)](https://coveralls.io/r/mattrobenolt/django-sudo?branch=master) | ||
|
||
> Sudo mode is an extra layer of security for your most sensitive pages.<br> | ||
> This is an implementation of GitHub's [Sudo Mode](https://github.com/blog/1513-introducing-github-sudo-mode) for [Django](https://www.djangoproject.com/). | ||
## 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 | ||
|
||
```console | ||
$ pip install django-sudo | ||
``` | ||
|
||
## Compatibility | ||
|
||
* Django 1.9-1.10 | ||
* Python 2.7, 3.6-3.7 | ||
|
||
## Resources | ||
|
||
* [Documentation](https://django-sudo.readthedocs.io/) | ||
* [Security](https://django-sudo.readthedocs.io/en/latest/security/index.html) | ||
* [Changelog](https://django-sudo.readthedocs.io/en/latest/changelog/index.html) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters