pax_global_header 0000666 0000000 0000000 00000000064 12643676621 0014527 g ustar 00root root 0000000 0000000 52 comment=915098188119a930600a2e202137ad043f18a666
django-hijack-2.0.3/ 0000775 0000000 0000000 00000000000 12643676621 0014222 5 ustar 00root root 0000000 0000000 django-hijack-2.0.3/.coveragerc 0000664 0000000 0000000 00000000060 12643676621 0016337 0 ustar 00root root 0000000 0000000 [run]
source = hijack
omit =
hijack/tests/*
django-hijack-2.0.3/.gitignore 0000664 0000000 0000000 00000001403 12643676621 0016210 0 ustar 00root root 0000000 0000000 *.egg-info/
*.pyc
*coverage/
db.sqlite
dist/
docs/_build/
app_media/
app_static/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
env?*/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml
# Translations
*.mo
*.pot
# Django stuff:
*.log
# Sphinx documentation
docs/_build/
# PyBuilder
target/
django-hijack-2.0.3/.travis.yml 0000664 0000000 0000000 00000001444 12643676621 0016336 0 ustar 00root root 0000000 0000000 language: python
python:
- "2.7"
- "3.4"
- "3.5"
env:
- DJANGO=django==1.4.*
- DJANGO=django==1.6.*
- DJANGO=django==1.7.*
- DJANGO=django==1.8.*
- DJANGO=django==1.9.*
sudo: false
install:
- pip install -r requirements.txt
- pip install -r requirements-test.txt
- pip install $DJANGO
- pip install coveralls
script:
coverage run runtests.py
after_success:
coveralls
matrix:
exclude:
- python: "3.4"
env: DJANGO=django==1.4.*
- python: "3.5"
env: DJANGO=django==1.4.*
- python: "3.5"
env: DJANGO=django==1.6.*
- python: "3.5"
env: DJANGO=django==1.7.*
allow_failures:
- env: DJANGO=django==1.4.*
- env: DJANGO=django==1.6.*
fast_finish: true
django-hijack-2.0.3/AUTHORS 0000664 0000000 0000000 00000001404 12643676621 0015271 0 ustar 00root root 0000000 0000000 Current or previous core committers
* Philippe O. Wagner (philippeowagner)
* Walter Renner (walterrenner)
* Yannik Ammann (yannik-ammann)
Contributors
* Alex Palcuie (palcu)
* Derek Stegelman (dstegelman)
* John Franey (johnfraney)
* Maria Niță (maria)
* (webdevelop)
* Patrick Forringer (destos)
* Raymond Penners (pennersr)
* Simon Charette (charettes)
* Vladysav Tarasenko (vladyslav2)
* Harry Rybacki (HarryRybacki)
* Remi (Remiz)
* Frank Wickström (frwickst)
* Alexander Allakhverdiyev (alexallah)
* Ryan P Kilby (rpkilby)
* David Friedman (dfrdmn)
* Aleksey (bargool)
* Gregory R. Warnes (warnes)
* benjaminrigaud (benjaminrigaud)
* Madis Väin (madisvain)
* Ezequiel Bertti (ebertti)
* cato-
* Christofer Bertonha (bertonha)
Your name could stand here :)
django-hijack-2.0.3/CHANGELOG.txt 0000664 0000000 0000000 00000003712 12643676621 0016255 0 ustar 00root root 0000000 0000000 === (ongoing) ===
=== (2.0.0) ===
- Unify settings; Django will show a warning if a deprecated setting name is used. See http://django-hijack.rtfd.org/en/latest/configuration/#settings-overview
- Drop official support for Django 1.4, 1.6; add support for 1.9 using https://github.com/arteria/django-compat v1.0.8
- Add i18n support, see https://github.com/arteria/django-hijack/tree/v2.0.0/hijack/locale
- Make `HIJACK_DECORATOR` configurable
- Do not update last_login time of hijacked users
- Add optional Bootstrap-optimized notification bar. Can be activated with `HIJACK_USE_BOOTSTRAP`
- Add signals `hijack_started` and `hijack_ended`
- Add AppConfig and various checks
- Check "next" GET parameter for safety
- Move documentation to http://django-hijack.readthedocs.org/
- Use https://github.com/arteria/django-sessioninfo as a dependency
- Rewrite tests
=== (1.0.10) ===
- Bugfixes
- Allow hijacking users with negative IDs
=== (1.0.9) ===
- Allow email usernames in login_with_username
- Dropped support for django 1.5
=== (1.0.8) ===
- Added RemoteUser support
- Fixed hide button to redirect to correct full path
- Custom hijack function
=== (1.0.7) ===
- Security update
=== (1.0.6) ===
- Do not allow staff users to hijack superusers
- Add setting to choose which user attributes can be used for hijacking a user
- Use a more liberal/naive approach to regex checking for an email
- Code cleanup
- Check staff status against logged in user instead the user being hijacked (bugfix)
- Only include 'disable-hijack-warning' url if HIJACK_NOTIFY_ADMIN is enabled
=== (1.0.5) ===
- Fix an error related to django-compat on Django 1.7.x (get_user_model)
- Updated dependencies to django-compat 1.0.1
=== (1.0.4) ===
- Python3 support
- Tests
=== (1.0.3) ===
- Support custom user models
=== (1.0.2) ===
- Store info in session (see #3 comments)
- Signals while hijacking
- Visual notifications for hijacking, see README for more detail
- Django 1.6 compatibility (in urls.py)
django-hijack-2.0.3/DESCRIPTION 0000664 0000000 0000000 00000000132 12643676621 0015724 0 ustar 00root root 0000000 0000000 django-hijack allows superusers to hijack (=login as) and work on behalf of another user.
django-hijack-2.0.3/LICENSE 0000664 0000000 0000000 00000002066 12643676621 0015233 0 ustar 00root root 0000000 0000000 The MIT License (MIT)
Copyright (c) 2013 arteria GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
django-hijack-2.0.3/MANIFEST.in 0000664 0000000 0000000 00000000405 12643676621 0015757 0 ustar 00root root 0000000 0000000 include AUTHORS
include LICENSE
include DESCRIPTION
include CHANGELOG.txt
include README.md
include requirements.txt
graft hijack
global-exclude *.orig *.pyc *.log *.swp
prune hijack/tests/coverage
prune hijack/.ropeproject
recursive-include hijack/templates *
django-hijack-2.0.3/Makefile 0000664 0000000 0000000 00000000413 12643676621 0015660 0 ustar 00root root 0000000 0000000 develop: setup-git
pip install "file://`pwd`#egg=hijack[dev]"
pip install -e .
setup-git:
git config branch.autosetuprebase always
cd .git/hooks && ln -sf ../../hooks/* ./
lint-python:
@echo "Linting Python files"
PYFLAKES_NODOCTEST=1 flake8 hijack
@echo ""
django-hijack-2.0.3/README.md 0000664 0000000 0000000 00000002414 12643676621 0015502 0 ustar 00root root 0000000 0000000 # Django Hijack
[](https://travis-ci.org/arteria/django-hijack)
[](https://waffle.io/arteria/django-hijack)
[](https://coveralls.io/github/arteria/django-hijack?branch=master)


With Django Hijack, admins can log in and work on behalf of other users without having to know their credentials.
## Docs
See http://django-hijack.readthedocs.org.
## Testimonials
> I am using django-hijack on a project with hundreds of users, wonderful tool for support. Thank you!
>
> — [benzinonapoloni](https://www.reddit.com/user/benzinonapoloni) on [reddit](https://redd.it/39aggd)
---
> This is a super useful tool. I have a site where I occasionally impersonating users to help troubleshoot their issues. This is a huge time saver.
>
> — [orangishyellow](https://www.reddit.com/user/orangishyellow) on [reddit](https://redd.it/2i35fu)
django-hijack-2.0.3/docs/ 0000775 0000000 0000000 00000000000 12643676621 0015152 5 ustar 00root root 0000000 0000000 django-hijack-2.0.3/docs/about.md 0000664 0000000 0000000 00000002403 12643676621 0016605 0 ustar 00root root 0000000 0000000 # TODOs, issues, and planned features
* Handle hijack using URLs on non-unique email addresses.
* unset_superuser example for signals
* Store info in user's profile (see #3 comments, Use case: 'Notify users when they were hijacked')
* "got it" Link in notification to remove notification and flag from session. This is useful if hijack is used to switch between users and ``HIJACK_DISPLAY_WARNING`` is True.
* Support for named URLs for the hijack button.
* Graceful support for custom user models that do not feature username / email
# Django 1.7–1.9 compatibility with [django-compat](https://github.com/arteria/django-compat)
All critical imports are carried out with the [compat library](https://github.com/arteria/django-compat) that ensures compatibility with Django 1.7 to 1.9.
The app is also tested with Django 1.4 and 1.6. However, the tests are allowed to fail, and the package may not be fully compatible with those versions.
# Similar projects
Similar projects can be found and compared in the [user-switching](https://www.djangopackages.com/grids/g/user-switching/) or the [support](https://www.djangopackages.com/grids/g/support-apps/) grids at Django Packages.
# Contributing
If you want to contribute to this project, simply send us a pull request. Thanks. :) django-hijack-2.0.3/docs/admin-screenshot.png 0000664 0000000 0000000 00000347260 12643676621 0021137 0 ustar 00root root 0000000 0000000 PNG
IHDR " h٩ sRGB pHYs YiTXtXML:com.adobe.xmp
1
L'Y @ IDATxy|wBvHBv V\PmV+wZUl][Zm[ZZջU֭,*I !, $!Ir~9'9'9A̙z^1??
@ @ @ @ @ @ ,}:@ @ @ @ @ @ \Q< "@ jPX@ @ @ @ @ @@ V*E @ @ @ @ @ 3 0(J@ @ @ @ @ @ D AaR@ @ @ @ @ @ Q< "@ jPX@ @ @ @ @ @@ V*E @ @ @ @ @ 3 0(J@ @ @ @ @ @ D AaR@ @ @ @ @ @ Q< "pڗviPYoѓ|Y?>?W0ezC添iv! :2K^SVkXcި/VtJ1M<[k:Zmu;Aqڸ
eVp<xk# Z$y>9NRaD?kVGEMyHW]ߵpf|ű\7Q법ӑǯj ߁ciJ57.ڣ13Lg.qҮ[/ޣTlrX(b pZ *CjN)G