{ "info": { "author": "Pior Bastida", "author_email": "pior@pbastida.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Pyramid", "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP :: WSGI" ], "description": "=================\nPyramid_debugauth\n=================\n\nDebug Authentication Policy for Pyramid. Provide a simple and standard way to\ndefine the pyramid principals from the HTTP client.\n\n**Warning**: This pyramid is totally unsafe for production and should be\nrestricted to debug usage / development phase.\n\n* PyPI: https://pypi.python.org/pypi/pyramid_debugauth\n* Code: https://github.com/pior/pyramid_debugauth\n* |travis-ci|\n\n.. |travis-ci| image::\n https://travis-ci.org/pior/pyramid_debugauth.svg?branch=master\n :target: https://travis-ci.org/pior/pyramid_debugauth\n :alt: Tests on Travis-CI\n\n\n\nInstallation\n============\n\nInstall using setuptools, e.g. (within a virtualenv)::\n\n $ pip install pyramid_debugauth\n\n\nSetup\n=====\n\nOnce ``pyramid_debugauth`` is installed, you can define a authentication policy\nwith ``config.set_authentication_policy``.\n\nIn your Pyramid project:\n\n.. code-block:: python\n\n from pyramid.authorization import ACLAuthorizationPolicy\n from pyramid_debugauth import DebugAuthenticationPolicy\n\n config = Configurator(.....)\n config.set_authentication_policy(DebugAuthenticationPolicy())\n config.set_authorization_policy(ACLAuthorizationPolicy())\n\n\nUsage\n=====\n\nThe DebugAuthenticationPolicy allows a client to impersonate any user and\nspecify any number of principals desired using the standard *Authorization*\nhttp header and a non-standard auth-scheme *Debug* (:rfc:`7235`):\n\n``Authorization: Debug user_id [principal_1] [principal_2] ...``\n\nWith common http clients:\n\n.. code-block:: bash\n\n $ curl http://localhost:6543 -H 'Authorization: Debug bob admin'\n\n $ http http://localhost:6543 'Authorization: Debug bob admin'\n\n\nOr using a non-standard *authorization* query parameter:\n\n``http://localhost:6543/protected?authorization=debug%20user_id%20principal_1``\n\nWith common http clients:\n\n.. code-block:: bash\n\n $ curl http://localhost:6543?authorization=debug%20bob%20admin\n\n $ http http://localhost:6543?authorization=debug\\ bob\\ admin\n\n\nDevelopment\n===========\n\nRunning tests::\n\n $ virtualenv venv\n $ . venv/bin/activate\n (venv)$ pip install -e .[dev]\n (venv)$ nosetests\n\n\nChangelog\n=========\n\n0.2.0 (2018-02-09)\n------------------\n\n* Switch to Github\n* Switch to setuptools (from d2to1)\n* Fix crash in tests with recent versions of Pyramid\n\n0.1.2 (2014-12-03)\n------------------\n\n* Permit setting a custom callback.\n\n0.1.1 (2014-09-09)\n------------------\n\n* Add ability to authenticate via Query String\n\n0.0.2 (2014-09-08)\n------------------\n\n* Minimal feature set\n* First release on PyPI\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pior/pyramid_debugauth", "keywords": "wsgi pylons pyramid auth authentication debug", "license": "BSD-derived (http://www.repoze.org/LICENSE.txt)", "maintainer": "", "maintainer_email": "", "name": "pyramid_debugauth", "package_url": "https://pypi.org/project/pyramid_debugauth/", "platform": "", "project_url": "https://pypi.org/project/pyramid_debugauth/", "project_urls": { "Homepage": "https://github.com/pior/pyramid_debugauth" }, "release_url": "https://pypi.org/project/pyramid_debugauth/0.2.0/", "requires_dist": [ "nose; extra == 'dev'", "nose-parameterized; extra == 'dev'", "nosexcover; extra == 'dev'", "coverage; extra == 'dev'", "mock; extra == 'dev'", "webtest; extra == 'dev'", "pyramid; extra == 'dev'", "readme; extra == 'dev'", "twine; extra == 'dev'", "Sphinx; extra == 'docs'", "sphinxcontrib-httpdomainlivereload (==1.0.1); extra == 'docs'" ], "requires_python": "", "summary": "Debug Authentication Policy for Pyramid", "version": "0.2.0" }, "last_serial": 3569262, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "52523469fc4c8096439e63843388f018", "sha256": "425e33b4a6138567662fd8e7058f2c5f13b1e7d658bcfe86ed8d1e041c710b3c" }, "downloads": -1, "filename": "pyramid_debugauth-0.0.1.tar.gz", "has_sig": false, "md5_digest": "52523469fc4c8096439e63843388f018", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3582, "upload_time": "2014-09-08T18:22:41", "url": "https://files.pythonhosted.org/packages/49/9c/d9c401612d8af834049d54108effe22a19cd454872fd9816111fba9beffc/pyramid_debugauth-0.0.1.tar.gz" } ], "0.0.1.dev0": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "6bc29fb1e1810119a5f277e8ff30de2d", "sha256": "3400b72278ea4d7ecd67f6b485c30da279dfc068a32d66b6b377815e2488c498" }, "downloads": -1, "filename": "pyramid_debugauth-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "6bc29fb1e1810119a5f277e8ff30de2d", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5697, "upload_time": "2014-09-08T18:33:18", "url": "https://files.pythonhosted.org/packages/3d/ab/8e44233d9a3642fc205afe55087539ee375fe6af0dcaa8da6f4d62d2c8df/pyramid_debugauth-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "337c4a5db2797694e02f4c0ed853424b", "sha256": "a230fc3742da5d5d0299928a55666a52d28ed0186a387a07bdec7c2cb11a963d" }, "downloads": -1, "filename": "pyramid_debugauth-0.0.2.tar.gz", "has_sig": false, "md5_digest": "337c4a5db2797694e02f4c0ed853424b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3602, "upload_time": "2014-09-08T18:32:59", "url": "https://files.pythonhosted.org/packages/85/e5/4ccf850e38aa90baf122ea076d805ae07906936cd96b9f3d50dc40c43294/pyramid_debugauth-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "ff9f3a7640490f95ee9e3d0fab2d4029", "sha256": "21b8973389841b67e09c7cdcc8e8bc90bb0e0d6e85d31016ed6de6c3b84456f4" }, "downloads": -1, "filename": "pyramid_debugauth-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ff9f3a7640490f95ee9e3d0fab2d4029", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3827, "upload_time": "2014-09-09T14:46:01", "url": "https://files.pythonhosted.org/packages/af/73/797e70c6d29cfd189f9ed221f4cd946ab7fcf0e9df6f65689b2ec7fccbda/pyramid_debugauth-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7383528d8144382d12a67f1b6bf1205f", "sha256": "21e5c91194c71a6a0445c790b9b9e54cfe7fc3977a2dabbc6792722fd8ad9fe2" }, "downloads": -1, "filename": "pyramid_debugauth-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7383528d8144382d12a67f1b6bf1205f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3822, "upload_time": "2014-09-09T15:00:39", "url": "https://files.pythonhosted.org/packages/ad/bd/27a10e50e36c97903e6a1119a8f38d2233ac997fe8fed835ef1680881a73/pyramid_debugauth-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "1acb1e0027565970151b98f8ed2de2ef", "sha256": "5e10ef9186f26956c4b7182d864b5e5bb2268208848358cdb5db7173d0b6f300" }, "downloads": -1, "filename": "pyramid_debugauth-0.1.2.tar.gz", "has_sig": false, "md5_digest": "1acb1e0027565970151b98f8ed2de2ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3901, "upload_time": "2014-12-03T21:15:23", "url": "https://files.pythonhosted.org/packages/26/cf/946ad36a4b9dd6ce53b68475ffa7ed03cae62ba8d913e60470026b3c9dff/pyramid_debugauth-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "98586bba36568a243410b3d3bf3d3759", "sha256": "e89135a3f562cdf45cd2f055f4b63b604fae4512513342b082924e198da0fc47" }, "downloads": -1, "filename": "pyramid_debugauth-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "98586bba36568a243410b3d3bf3d3759", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6788, "upload_time": "2018-02-10T05:17:25", "url": "https://files.pythonhosted.org/packages/a4/78/9bacb1aca23953177aaaf20a12580872b0fe5be55f3b9601d16682f0957f/pyramid_debugauth-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5c8e761b8245293e9742e5d159530f96", "sha256": "b01e0de21c5fa3718286571b5d41ac73dd844b92f7e963d4d82fb2176ca05a3f" }, "downloads": -1, "filename": "pyramid_debugauth-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5c8e761b8245293e9742e5d159530f96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4479, "upload_time": "2018-02-10T05:17:26", "url": "https://files.pythonhosted.org/packages/88/d9/aee01de02e1ffe8e493ebe0b6e93900dcccc98d1563aaec452ad8ded59d0/pyramid_debugauth-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "98586bba36568a243410b3d3bf3d3759", "sha256": "e89135a3f562cdf45cd2f055f4b63b604fae4512513342b082924e198da0fc47" }, "downloads": -1, "filename": "pyramid_debugauth-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "98586bba36568a243410b3d3bf3d3759", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6788, "upload_time": "2018-02-10T05:17:25", "url": "https://files.pythonhosted.org/packages/a4/78/9bacb1aca23953177aaaf20a12580872b0fe5be55f3b9601d16682f0957f/pyramid_debugauth-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5c8e761b8245293e9742e5d159530f96", "sha256": "b01e0de21c5fa3718286571b5d41ac73dd844b92f7e963d4d82fb2176ca05a3f" }, "downloads": -1, "filename": "pyramid_debugauth-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5c8e761b8245293e9742e5d159530f96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4479, "upload_time": "2018-02-10T05:17:26", "url": "https://files.pythonhosted.org/packages/88/d9/aee01de02e1ffe8e493ebe0b6e93900dcccc98d1563aaec452ad8ded59d0/pyramid_debugauth-0.2.0.tar.gz" } ] }