{ "info": { "author": "Mozilla Services", "author_email": "services-dev@mozilla.org", "bugtrack_url": null, "classifiers": [ "Framework :: Pylons", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "===============\npyramid_whoauth\n===============\n\nAn authentication policy for Pyramid that uses the repoze.who v2 API.\n\n\nOverview\n========\n\nThis plugin allows you to configure a repoze.who authentication stack as a\npyramid authentication policy. It takes a repoze.who API factory and turns\nit into an pyramid IAuthenticationPolicy::\n\n from repoze.who.config import make_api_factory_with_config\n\n api_factory = make_api_factory_with_config(global_conf, \"etc/who.ini\")\n authn_policy = WhoAuthenticationPolicy(api_factory)\n config.set_authentication_policy(authn_policy)\n\nThis will load the repoze.who configuration from the specified config file\nand hook it into Pyramid.\n\nThe advantage of using pyramid_whoauth instead of the repoze.who middleware\nis that authentication is only performed when your application explicitly\nrequests it using e.g. pyramid's authenticated_userid() function.\n\nFor convenience, you can also specify all of the repoze.who configuration\nsettings as part of your paster deployment settings. For example, you\nmight have the following::\n\n [app:pyramidapp]\n use = egg:mypyramidapp\n\n who.plugin.basicauth.use = repoze.who.plugins.basicauth:make_plugin\n who.plugin.basicauth.realm = MyRealm\n\n who.plugin.authtkt.use = repoze.who.plugins.auth_tkt:make_plugin\n who.plugin.authtkt.secret = Oh So Secret!\n\n who.identifiers.plugins = authtkt basicauth\n who.authenticators.plugins = authtkt basicauth\n who.challengers.plugins = basicauth\n\nThis configures repoze.who to use the \"basicauth\" and \"auth_tkt\" plugins,\nusing pyramid's dotted-settings style rather than the repoze.who config file.\nThen it is a simple matter of including the pyramid_whoauth module into your\nconfigurator::\n\n config.include(\"pyramid_whoauth\")\n\nIn addition to configuring the repoze.who API factory from the given settings,\nthis will also set up some extra conveniences for your application:\n\n * a forbidden view that challenges for credentials via repoze.who\n * a login view that authenticates any credentials submitted via POST\n * a logout view that sends forget headers when accessed\n * a tween that calls the repoze.who \"remember\" method for each response\n\n\n\n0.1.2 - 2012-05-28\n==================\n\n- Place the tween directly above the EXCVIEW tween. This will help\n ensure it is underneath other unrelated tweens, so they will not see\n the ApplicationRedirectException being thrown.\n\n\n0.1.1 - 2012-01-30\n==================\n\n- Update to MPL 2.0\n\n\n0.1.0 - 2011-11-11\n==================\n\n- Initial release", "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/mozilla-services/pyramid_whoauth", "keywords": "web pyramid pylons authentication", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pyramid_whoauth", "package_url": "https://pypi.org/project/pyramid_whoauth/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyramid_whoauth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mozilla-services/pyramid_whoauth" }, "release_url": "https://pypi.org/project/pyramid_whoauth/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "pyramid_whoauth", "version": "0.1.2" }, "last_serial": 1164026, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0a0cf5b3813f635d5a32203c5368881e", "sha256": "ab23bf6482f41851be66522b514305b167d2f50c4cd5a8ebd296a02a4bb3e383" }, "downloads": -1, "filename": "pyramid_whoauth-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0a0cf5b3813f635d5a32203c5368881e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11070, "upload_time": "2011-11-18T10:29:22", "url": "https://files.pythonhosted.org/packages/96/69/99343109e1323d9a4820e1239594e1a74c7741ae0d074b1a95ebc54eca4e/pyramid_whoauth-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "61f2c69672b33fc3150a35581923f4e3", "sha256": "6c0dbda9283261c656019fc27dcb03928417be0d44365bb69c2bef855fd0591a" }, "downloads": -1, "filename": "pyramid_whoauth-0.1.1.tar.gz", "has_sig": false, "md5_digest": "61f2c69672b33fc3150a35581923f4e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10381, "upload_time": "2012-01-30T01:55:34", "url": "https://files.pythonhosted.org/packages/76/78/70f98dc1322ae0d5ccd6e62f71e433e2a5d9f0b1bc1a8d030e7a5a433ffb/pyramid_whoauth-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "64c52669ab144dca3c38bed76ee36db9", "sha256": "fb167551b49dd5d285b445c14ec3b434bccebb227a54ab3c801b1a2e28cc9eb4" }, "downloads": -1, "filename": "pyramid_whoauth-0.1.2.tar.gz", "has_sig": false, "md5_digest": "64c52669ab144dca3c38bed76ee36db9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10631, "upload_time": "2012-05-28T04:35:15", "url": "https://files.pythonhosted.org/packages/c0/5a/12dc24d75a4ae71376da43ea148b0fcdea144447128ccc9ab07b4ce3254f/pyramid_whoauth-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "64c52669ab144dca3c38bed76ee36db9", "sha256": "fb167551b49dd5d285b445c14ec3b434bccebb227a54ab3c801b1a2e28cc9eb4" }, "downloads": -1, "filename": "pyramid_whoauth-0.1.2.tar.gz", "has_sig": false, "md5_digest": "64c52669ab144dca3c38bed76ee36db9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10631, "upload_time": "2012-05-28T04:35:15", "url": "https://files.pythonhosted.org/packages/c0/5a/12dc24d75a4ae71376da43ea148b0fcdea144447128ccc9ab07b4ce3254f/pyramid_whoauth-0.1.2.tar.gz" } ] }