{ "info": { "author": "Jonas Haag", "author_email": "jonas@lophus.org", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "httpauth\n========\n\na WSGI middleware that secures some/all routes using HTTP Digest Authentication.\n\n\nInstallation\n------------\n::\n\n pip install httpauth\n\n\nUsing with credentials dictionary\n---------------------------------\n::\n\n secured_wsgi_app = httpauth.DictHttpAuthMiddleware(\n {'user1': 'password1', 'user2': 'password2'},\n wsgi_app=unsecured_wsgi_app,\n #realm='Secured Content', # optional\n )\n\n\nUsing with a ``.htdigest`` file\n-------------------------------\n::\n\n secured_wsgi_app = httpauth.DigestFileHttpAuthMiddleware(\n open('/path/to/your/.htdigest'),\n wsgi_app=unsecured_wsgi_app,\n )\n\n``.htdigest`` files can be created using the ``htdigest`` Apache tool.\n\n\nSecuring only some URLs\n-----------------------\nIf given, the ``routes`` parameter (a list of regular expressions) specifies\nthe URLs to be secured. (By default, all URLs are secured.)\n\n::\n\n secured_wsgi_app = httpauth.DictHttpAuthMiddleware(\n {'user': 'password'},\n wsgi_app=unsecured_wsgi_app,\n routes=['^/admin/', '^/another/secret/page/$'],\n )\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/jonashaag/httpauth", "keywords": null, "license": "2-clause BSD", "maintainer": null, "maintainer_email": null, "name": "httpauth", "package_url": "https://pypi.org/project/httpauth/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/httpauth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jonashaag/httpauth" }, "release_url": "https://pypi.org/project/httpauth/0.3/", "requires_dist": null, "requires_python": null, "summary": "WSGI HTTP Digest Authentication middleware", "version": "0.3" }, "last_serial": 1944499, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "67e421d6ae3d783a176c874b8dd77ed0", "sha256": "e24a13503d8ad9b38e16db6d61e49dd46d7e26fcf11bbb6183768555e64dbf19" }, "downloads": -1, "filename": "httpauth-0.1.1.tar.gz", "has_sig": false, "md5_digest": "67e421d6ae3d783a176c874b8dd77ed0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3173, "upload_time": "2012-07-10T19:44:57", "url": "https://files.pythonhosted.org/packages/0b/1d/c780b4e37e691efbf27f741d83e214ad74d90d5dc724fc3690313313bfd3/httpauth-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "78d1835a80955e68e98a3ca5ab7f7dbd", "sha256": "294029b5dfed27bca5746a31e3ffb5ed99268761536705e8bbd44231b7ca15ec" }, "downloads": -1, "filename": "httpauth-0.2.tar.gz", "has_sig": false, "md5_digest": "78d1835a80955e68e98a3ca5ab7f7dbd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4230, "upload_time": "2012-08-01T20:55:01", "url": "https://files.pythonhosted.org/packages/d2/c5/d4443a911bdb5cb3d1d911b0243e56af651b494d39f577e1ca1f3d8a639e/httpauth-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "5e9c5f0d5df071cdb923453e6ae7bd96", "sha256": "74645a5c3cf7d094fb3b6803b789453ade634f2eb7d177d149dfbf680e3a5a61" }, "downloads": -1, "filename": "httpauth-0.3.tar.gz", "has_sig": false, "md5_digest": "5e9c5f0d5df071cdb923453e6ae7bd96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4440, "upload_time": "2016-02-07T18:26:02", "url": "https://files.pythonhosted.org/packages/f0/0f/4d7a1807471c452c0097f30d9ce7ddd535e34036ce5cef6c3a3de66c39ef/httpauth-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5e9c5f0d5df071cdb923453e6ae7bd96", "sha256": "74645a5c3cf7d094fb3b6803b789453ade634f2eb7d177d149dfbf680e3a5a61" }, "downloads": -1, "filename": "httpauth-0.3.tar.gz", "has_sig": false, "md5_digest": "5e9c5f0d5df071cdb923453e6ae7bd96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4440, "upload_time": "2016-02-07T18:26:02", "url": "https://files.pythonhosted.org/packages/f0/0f/4d7a1807471c452c0097f30d9ce7ddd535e34036ce5cef6c3a3de66c39ef/httpauth-0.3.tar.gz" } ] }