{ "info": { "author": "Andy Mroczkowski", "author_email": "andy@mrox.net", "bugtrack_url": null, "classifiers": [], "description": "===========\ndjango-moat\n===========\n\ndjango-moat is a mini-app adds an additional layer of authentication via HTTP\nBasic Auth. It's primary use case is to prevent access staging, development, or\notherwise private sites on the public internet. It is equivalent to configuring\nBasic Auth on your webserver (Apache, nginx) but works in environments where\nthat is not possible (heroku).\n\nInstallation\n------------\n\nFrom PyPi ::\n\n pip install django-moat\n\nTo install from source ::\n\n pip install -e git+https://github.com/amrox/django-moat#egg=django-moat\n\n\nConfiguration\n-------------\n\nAdd ``moat.middleware.MoatMiddleware`` to your ``MIDDLEWARE_CLASSES``::\n\n MIDDLEWARE_CLASSES = (\n # Existing middleware classes\n \"moat.middleware.MoatMiddleware\",\n )\n\n``moat`` has several configuration variable you may put in your ``settings.py``\n\nMOAT_ENABLED\n Enable or disable ``moat``. (True or False)\n \n MOAT_ENABLED = True\n\nHTTP_AUTH_REALM \n Set Basic Auth Realm\n \n HTTP_AUTH_REALM = 'App Staging'\n\nMOAT_ALWAYS_ALLOW_VIEWS\n A list of views to allow through ``moat``\n\n MOAT_ALWAYS_ALLOW_VIEWS = ['myapp.views.home']\n \nMOAT_ALWAYS_ALLOW_MODULES \n A list of modules to allow through ``moat``\n\n MOAT_ALWAYS_ALLOW_MODULES = ['oauth_provider.views']\n\nMOAT_ALLOW_ADMIN\n Let the admin site through ``moat``. Default: ``False``.\n\n MOAT_ALLOW_ADMIN = True\n\nMOAT_DEBUG_DISABLE_HTTPS\n Disable HTTPS. *For testing purposes only.* Don't ship with this on.\n \n MOAT_DEBUG_DISABLE_HTTPS = True\n\n\nFinally you may want to set the `SESSION_EXPIRE_AT_BROWSER_CLOSE `_ setting.\n\nUsage\n-----\n\nYour site now requires that your authenticate with a staff-level user before\naccessing any non-whitelisted view. It is recommended that your add a dedicate\nstaff-level user in the django admin for moat authentication.\n\nBy default, the admin views will be blocked by ``moat``. You'll either need to\ncreate a user with ``django-admin.py``, or set ``MOAT_ALLOW_ADMIN`` to\n``True``.\n\nAcknowledgements\n----------------\n\nCode borrowed from:\n\n- http://djangosnippets.org/snippets/1720/\n- https://github.com/pragmaticbadger/django-privatebeta\n\nThanks to `Ryan Balfanz `_ for suggesting the name ``moat``.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://amrox.github.com/django-moat/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-moat", "package_url": "https://pypi.org/project/django-moat/", "platform": "any", "project_url": "https://pypi.org/project/django-moat/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://amrox.github.com/django-moat/" }, "release_url": "https://pypi.org/project/django-moat/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "django-moat", "version": "0.1.1" }, "last_serial": 790090, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6477eb24395811b85e69b7c34fec38a7", "sha256": "fe699ff6c4f7c91b3cf17bca63ad963c212dc4b1318fa200dfe60a8de01f7d53" }, "downloads": -1, "filename": "django-moat-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6477eb24395811b85e69b7c34fec38a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3664, "upload_time": "2012-03-03T04:18:02", "url": "https://files.pythonhosted.org/packages/43/7b/c15a0614949e2557683a728255944407b1ee0988e6be839ecae1b1fae3ad/django-moat-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0951c2e3840ed57e74f102e392daa9fc", "sha256": "6764e2c3d927d734d848f76af39faa75152afb2bb21245170f3fcea3fa4eebf1" }, "downloads": -1, "filename": "django-moat-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0951c2e3840ed57e74f102e392daa9fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4512, "upload_time": "2012-03-12T03:16:15", "url": "https://files.pythonhosted.org/packages/8d/59/b58760b2cd602d015c60beafaea7cf9d72d76c77b522355c29135ccc9db8/django-moat-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0951c2e3840ed57e74f102e392daa9fc", "sha256": "6764e2c3d927d734d848f76af39faa75152afb2bb21245170f3fcea3fa4eebf1" }, "downloads": -1, "filename": "django-moat-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0951c2e3840ed57e74f102e392daa9fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4512, "upload_time": "2012-03-12T03:16:15", "url": "https://files.pythonhosted.org/packages/8d/59/b58760b2cd602d015c60beafaea7cf9d72d76c77b522355c29135ccc9db8/django-moat-0.1.1.tar.gz" } ] }