{ "info": { "author": "Daniel Hepper", "author_email": "daniel@hepper.net", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "===========================\nDjango Always Authenticated\n===========================\n\nA middleware that ensures that a request always has an authenticated user.\n\nIf the request doesn't have an authenticated user, it logs in a default\nuser. If the default user doesn't exist, it is created.\n\nCompatibility\n=============\nThis middleware has been tested with these versions of Django:\n\n* 1.7\n* 1.8\n* 1.9\n* 1.10\n* master (at the time of the release)\n\nSetup\n=====\n\nInstall from PyPI::\n\n pip install django_always_authenticated\n\nAdd to ``MIDDLEWARE`` (``MIDDLEWARE_CLASSES`` for Django <1.10) in settings file::\n\n MIDDLEWARE = (\n ...\n 'always_authenticated.middleware.AlwaysAuthenticatedMiddleware',\n )\n\nAs a security safeguard, the middleware will raise an\n``ImproperlyConfiguredException`` when running in production mode\n(``DEBUG=False``).\nTo run the middleware in production, set ``ALWAYS_AUTHENTICATED_DEBUG_ONLY`` to\n``False``.\n\nConfiguration\n=============\n\nThis middleware reads these settings:\n\nALWAYS_AUTHENTICATED_USERNAME\n-----------------------------\nA string with the name of the default user, defaults to ``'user'``.\n\nALWAYS_AUTHENTICATED_USER_DEFAULTS\n----------------------------------\nA dict with additional default values to set when creating the user.\n\nALWAYS_AUTHENTICATED_DEBUG_ONLY\n-------------------------------\nSet to `False` to allow running with DEBUG=False.\n\nExample project\n===============\nThere is a very single example project that demonstrates the middleware in the\ndirectory `example_project`.\n\nRunning Tests\n=============\nTo run the tests, install the requirements and run py.test::\n\n pip install -r requirements.txt\n py.test\n\nYou can also use tox to run the tests with all supported versions of\nPython and Django::\n\n pip install tox\n tox", "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/dhepper/django-always-authenticated", "keywords": null, "license": "Simplified BSD License", "maintainer": null, "maintainer_email": null, "name": "django-always-authenticated", "package_url": "https://pypi.org/project/django-always-authenticated/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-always-authenticated/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/dhepper/django-always-authenticated" }, "release_url": "https://pypi.org/project/django-always-authenticated/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A Django middleware that ensures every request has anauthenticated user.", "version": "0.1.0" }, "last_serial": 2542288, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "38b75e81d29d19528078078a846da4ee", "sha256": "8f111220d27cc1951f965afc63ffa42e716e1ca7f84ab5aa010bd73c0fde4e76" }, "downloads": -1, "filename": "django-always-authenticated-0.1.0.tar.gz", "has_sig": false, "md5_digest": "38b75e81d29d19528078078a846da4ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2918, "upload_time": "2016-12-28T10:50:27", "url": "https://files.pythonhosted.org/packages/9c/69/b083b81ab31692412388fbd3a799156891b6f7d27e95c192caba7ada5a31/django-always-authenticated-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "38b75e81d29d19528078078a846da4ee", "sha256": "8f111220d27cc1951f965afc63ffa42e716e1ca7f84ab5aa010bd73c0fde4e76" }, "downloads": -1, "filename": "django-always-authenticated-0.1.0.tar.gz", "has_sig": false, "md5_digest": "38b75e81d29d19528078078a846da4ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2918, "upload_time": "2016-12-28T10:50:27", "url": "https://files.pythonhosted.org/packages/9c/69/b083b81ab31692412388fbd3a799156891b6f7d27e95c192caba7ada5a31/django-always-authenticated-0.1.0.tar.gz" } ] }