{ "info": { "author": "Matt Johnson", "author_email": "mdj2@pdx.edu", "bugtrack_url": null, "classifiers": [ "Framework :: Django" ], "description": "# django-cloak\n\n[](https://travis-ci.org/PSU-OIT-ARC/django-cloak)\n\ncloak is an app that allows administrative users to browse the site as a different user. It also includes a management command (`login`) to generate a login link for a particular user.\n\n## Installation\n\n1. pip install django-cloak\n1. Add `cloak` to your INSTALLED_APPS setting\n1. Add `cloak.middleware.CloakMiddleware` to your `MIDDLEWARE_CLASSES` (after session and auth middleware)\n1. Add `url(r'^cloak/', include('cloak.urls'))` to your urls.py\n\n## Requirements\n\nSessionMiddleware and django.contrib.auth\n\n## Usages\n\n### Command line\n\n ./manage.py login user_identifier\n\nwhere `user_identifier` is the value of the USERNAME_FIELD field of your user model.\n\nThis will spit out a path you can append to your site's base URL, which will automatically log you in as that user.\n\n**Note**: The backend associated with the user (i.e. the value of `user.backend`) will be the first backend listed in AUTHENTICATION_BACKENDS.\n\nWithout a user_identifier, the command will try to find a user with `is_superuser=True`, or `is_staff=True`, or any user, in that order.\n\n### Templates\n\nTo cloak as a user, create a form that POSTs to the cloaking URL. The URL can either contain the PK of the user, or you can pass the PK as a POST parameter:\n\n
\n\nor\n\n \n\n## Other Information\n\nYou can tell if a user is cloaked by checking the \"is_cloaked\" attribute on the user object (this flag is set in the middleware).\n\nWhen determining if a user is allowed to cloak, the cloak view tries to call a `request.user.can_cloak_as(other_user)` method. If no such method is defined, the code falls back on the `request.user.is_staff` flag.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/PSU-OIT-ARC/django-cloak", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-cloak", "package_url": "https://pypi.org/project/django-cloak/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-cloak/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/PSU-OIT-ARC/django-cloak" }, "release_url": "https://pypi.org/project/django-cloak/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "App for Django to cloak as a user, or generate a login link", "version": "1.0.0" }, "last_serial": 2850252, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "0edb2f6d58486e4912e276a2d9765d8c", "sha256": "73a54fe17a1cac4079abdf7383b9ffa3950fb451ca58b923e21a5ec3d2b66c68" }, "downloads": -1, "filename": "django-cloak-0.1.tar.gz", "has_sig": false, "md5_digest": "0edb2f6d58486e4912e276a2d9765d8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2831, "upload_time": "2014-02-26T19:34:51", "url": "https://files.pythonhosted.org/packages/97/0b/896344e9a31cb41fc29a384ed56cfce7fcbf4e02406e0d059d05a15250a9/django-cloak-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e73e2c51517560b42a3f0ecd3d1c7a2d", "sha256": "d4acef8a4f3913b49c8d2be8e5fc69d7c31ccda32a141c49c0f64fa90d33b038" }, "downloads": -1, "filename": "django-cloak-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e73e2c51517560b42a3f0ecd3d1c7a2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4990, "upload_time": "2014-02-27T22:51:27", "url": "https://files.pythonhosted.org/packages/1c/1a/5be4c22ee43d0ad3a8302f80a33bc089a3048e8c38fe37c8e6f9218c3bc0/django-cloak-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "7b72a8baa165ac8cf784e0e7bb1d437a", "sha256": "a2caf36dddfc90ff3c7d7df7ce9dd615aebf4041109d83b71e419e25fbfdf3c9" }, "downloads": -1, "filename": "django-cloak-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7b72a8baa165ac8cf784e0e7bb1d437a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5085, "upload_time": "2014-05-22T17:13:06", "url": "https://files.pythonhosted.org/packages/eb/3c/6fb665dde5fb81f234a8a96f75e6ada60b9df3889d3a5b949e2a3479a497/django-cloak-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c5b0d60e28a4aee3d136b45b98c6f204", "sha256": "1169ad9d972bed542bcc48b5edb1dacdc9c117a791e3715f30235090887e01ac" }, "downloads": -1, "filename": "django-cloak-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c5b0d60e28a4aee3d136b45b98c6f204", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5069, "upload_time": "2014-07-16T20:01:09", "url": "https://files.pythonhosted.org/packages/8e/74/19101f068427adddc02406fddf378159ff63d960612dd856981d1e18f9f0/django-cloak-0.1.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "0882f8b95b9f2ad22b4a6b1492954b50", "sha256": "2456544c13dca33c7c30b701c5ea87746ee7e9989226c345ee6080100901b524" }, "downloads": -1, "filename": "django-cloak-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0882f8b95b9f2ad22b4a6b1492954b50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7510, "upload_time": "2015-03-13T21:49:07", "url": "https://files.pythonhosted.org/packages/9b/c5/008adeb3b41108392c74c79bf69e9b581f8a9a3b6762dc1e255e9fa21e95/django-cloak-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0882f8b95b9f2ad22b4a6b1492954b50", "sha256": "2456544c13dca33c7c30b701c5ea87746ee7e9989226c345ee6080100901b524" }, "downloads": -1, "filename": "django-cloak-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0882f8b95b9f2ad22b4a6b1492954b50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7510, "upload_time": "2015-03-13T21:49:07", "url": "https://files.pythonhosted.org/packages/9b/c5/008adeb3b41108392c74c79bf69e9b581f8a9a3b6762dc1e255e9fa21e95/django-cloak-1.0.0.tar.gz" } ] }