{ "info": { "author": "Hadrien David", "author_email": "hadrien@ectobal.com", "bugtrack_url": null, "classifiers": [], "description": "===================\npyramid_contextauth\n===================\n\n.. image:: https://travis-ci.org/hadrien/pyramid_contextauth.png\n :target: https://travis-ci.org/hadrien/pyramid_contextauth\n\n.. image:: https://coveralls.io/repos/hadrien/pyramid_contextauth/badge.png\n :target: https://coveralls.io/r/hadrien/pyramid_contextauth\n\n.. image:: https://pypip.in/d/pyramid_contextauth/badge.png\n :target: https://crate.io/packages/pyramid_contextauth/\n\n\nA simple pyramid extension to register contexts based authentication policy.\nIntrospectables for policies registered are added to configuration and will\nappear in debugtoolbar with their associated contexts.\n\n.. code-block:: python\n\n from pyramid.security import remember, forget\n from pyramid.authentication import AuthTktAuthenticationPolicy\n\n def includeme(config):\n config.include('pyramid_contextauth')\n config.register_authentication_policy(\n AuthTktAuthenticationPolicy('secret'),\n Context1,\n )\n config.register_authentication_policy(\n ContextAuthenticationPolicy(),\n (Context2, Context3),\n )\n\n\n class Context1(object):\n pass\n\n\n class Context2(object):\n pass\n\n\n class Context3(object):\n pass\n\n\n class ContextAuthenticationPolicy(object):\n\n def authenticated_userid(self, request):\n return unauthenticated_userid(request)\n\n def unauthenticated_userid(self, request):\n \"A dummy example\"\n return request.POST.get('userid')\n\n def effective_principals(self, request):\n if self.unauthenticated_userid(request):\n return ['User']\n return []\n\n def remember(self, request, prinicpal, **kw):\n return remember(request, prinicpal, **kw)\n\n def forget(self, request):\n return forget(request)\n\nChangelog\n=========\n\n0.7\n---\n\n* Policy checks on each resource lineage and get the first policy it gets.\n* Add coverall in after_success of travis config.\n* Remove pyramid version constraints.\n\n0.6\n---\n\n* Removing decorator ``authentication_policy``: extension should not\n instantiate authentication policy class internally.\n\n0.5\n---\n\n* Registering same context to multiple policies raises a configuration error.\n* Unregister old policy when overriding a context with another policy.\n* Change register_authentication_policy and authentication_policy signatures.\n\n0.4\n---\n\n* Add introspectables to config for registered authentication policies.\n* Rename register_context to register_policy\n\n0.3\n---\n\n* Break backward compatibility as\n ``ContextBasedAuthenticationPolicy.register_context`` now requires ``config``\n instance as first argument.\n* Add ``config.register_authentication_policy`` configuration directive which\n accepts a list of contexts.\n* Use registry adpaters to register policies rather than a dict.\n* Add a decorator ``authentication_policy`` to register policies when doing\n a config scan.\n\n0.2.1\n-----\n\n* Adjust requirements files and dependencies.\n\n0.2\n---\n\n* Update dependencies by adding requirements files.\n\n0.1.1\n-----\n\n* Changed ``register_context`` interface which breaks compatibility with 0.0.3\n\n0.0.3\n-----\n\n* Commit configuration before returning from includeme.\n\n\n0.0.2\n-----\n\n* When not provided, ``authenticated_userid`` and ``effective_principals`` from\n super class ``CallbackAuthenticationPolicy`` are used.\n\n\n0.0.1\n-----\n\n* Initial version", "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/hadrien/pyramid_contextauth", "keywords": null, "license": "BSD-derived (http://www.repoze.org/LICENSE.txt)", "maintainer": null, "maintainer_email": null, "name": "pyramid_contextauth", "package_url": "https://pypi.org/project/pyramid_contextauth/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyramid_contextauth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/hadrien/pyramid_contextauth" }, "release_url": "https://pypi.org/project/pyramid_contextauth/0.7.3/", "requires_dist": null, "requires_python": null, "summary": "Pyramid security extension to register multiple contexts based\nauthentication policies.", "version": "0.7.3" }, "last_serial": 1203006, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "22bf44a9e41abd253b1269bebb7a4fdd", "sha256": "c56e41686717bd70b3b9630f28c579164599226be2272c2d406c0609ce84799b" }, "downloads": -1, "filename": "pyramid_contextauth-0.0.1.tar.gz", "has_sig": false, "md5_digest": "22bf44a9e41abd253b1269bebb7a4fdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3167, "upload_time": "2013-02-14T23:09:26", "url": "https://files.pythonhosted.org/packages/38/e6/b2016e6f339b5123dff6d647a2a0798f47b3f8962ec7f203f4b5d45888b0/pyramid_contextauth-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "bdb071c824e4f506e3e9f67ebd831963", "sha256": "89d03b3a6a7af557a97f021428705d589b9336accdb3dff8c2b1196136e150f4" }, "downloads": -1, "filename": "pyramid_contextauth-0.0.2.tar.gz", "has_sig": false, "md5_digest": "bdb071c824e4f506e3e9f67ebd831963", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3277, "upload_time": "2013-02-15T17:11:58", "url": "https://files.pythonhosted.org/packages/ba/8e/cc6fd87e72aa299de1809c1a6340981328d234ba6e61fbd7106404aac9f7/pyramid_contextauth-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "f7ef260d19a323071bfbf6c48edfea00", "sha256": "6731a2e4f598246818447c9506eb186c47cc077b49fc8b65aa0b74a740fa5fd3" }, "downloads": -1, "filename": "pyramid_contextauth-0.0.3.tar.gz", "has_sig": false, "md5_digest": "f7ef260d19a323071bfbf6c48edfea00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3321, "upload_time": "2013-02-15T17:29:06", "url": "https://files.pythonhosted.org/packages/79/59/de88acb89cbacc388d61d21df45798488dc1e6741f4eb06a013ad3607989/pyramid_contextauth-0.0.3.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "993e28e4c3ee004d768425cffc4be756", "sha256": "74fffb965105b0ffb329501f9d6a092b15389201eed60493c1c31ea3e26dcf6c" }, "downloads": -1, "filename": "pyramid_contextauth-0.1.1.tar.gz", "has_sig": false, "md5_digest": "993e28e4c3ee004d768425cffc4be756", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3386, "upload_time": "2013-02-20T20:41:38", "url": "https://files.pythonhosted.org/packages/eb/c8/599f89c569aed61225f80bb712fb8393efe8bdb46ce024711713b1edd7e6/pyramid_contextauth-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "f3df4d8ab73f5e85b6b7ee55754a950a", "sha256": "dcf2bba1854fa5e6e70d2524b5e3e6fe26a2f787b3860eaec4d234d6c87ae292" }, "downloads": -1, "filename": "pyramid_contextauth-0.2.tar.gz", "has_sig": false, "md5_digest": "f3df4d8ab73f5e85b6b7ee55754a950a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3231, "upload_time": "2013-06-05T20:31:33", "url": "https://files.pythonhosted.org/packages/f3/46/dcd0a978d78d93ec9f3bd6795c8db63cb039236110d70114e433a291dc03/pyramid_contextauth-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "3dd9603043ea46c54e07c1ec3e04811a", "sha256": "507de7374465f3cae6caef37967f59abca3f4fd92f50cea399e0d2b85421373b" }, "downloads": -1, "filename": "pyramid_contextauth-0.2.1.tar.gz", "has_sig": false, "md5_digest": "3dd9603043ea46c54e07c1ec3e04811a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3241, "upload_time": "2013-07-23T22:36:48", "url": "https://files.pythonhosted.org/packages/37/ad/3be651825d5a1602ff92329b745b870d270d8d449bf68904f0d9f279c545/pyramid_contextauth-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "879b9473f3b3968b0c9fb1c498f35a39", "sha256": "ad4cd85ca411521447aa9e356e3a6375336536bf24f25a60326c519ae6d6257a" }, "downloads": -1, "filename": "pyramid_contextauth-0.3.tar.gz", "has_sig": false, "md5_digest": "879b9473f3b3968b0c9fb1c498f35a39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3616, "upload_time": "2014-03-22T02:24:11", "url": "https://files.pythonhosted.org/packages/5a/74/9a3c1eff5a0536d9ec06329067f4373acd2adf18002a08888c0a7c2319f0/pyramid_contextauth-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "77ee02094b94201443d163eea0ceb1d5", "sha256": "226b80045ff92d114cf44c8af422eabb9985e7f329ecfca6dcb4ad6d8a15ade9" }, "downloads": -1, "filename": "pyramid_contextauth-0.4.tar.gz", "has_sig": false, "md5_digest": "77ee02094b94201443d163eea0ceb1d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3930, "upload_time": "2014-03-24T15:55:33", "url": "https://files.pythonhosted.org/packages/7a/67/d1586b69db01964256a9229b645c58c84bdd7fa480dcbd86d96dfc2082fb/pyramid_contextauth-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "7e25f28a3add3d4fe956546ee677f312", "sha256": "be7770c00b554e22ac944e3b35133f8b22bd9a6e506a75870be71ac594145cdd" }, "downloads": -1, "filename": "pyramid_contextauth-0.5.tar.gz", "has_sig": false, "md5_digest": "7e25f28a3add3d4fe956546ee677f312", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4309, "upload_time": "2014-03-25T00:26:51", "url": "https://files.pythonhosted.org/packages/f8/10/5262e3e469a7f561e782f0716c920b791c38bbee6ce9c9cb53b2e59ef1a3/pyramid_contextauth-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "6c15a3dbf5195db407e1e2f6f29d8b37", "sha256": "d2b3dfab1a042b7190480203a450a41c5383e3f6479c9205f6da1035a5f3cc7f" }, "downloads": -1, "filename": "pyramid_contextauth-0.6.tar.gz", "has_sig": false, "md5_digest": "6c15a3dbf5195db407e1e2f6f29d8b37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4323, "upload_time": "2014-03-25T15:58:14", "url": "https://files.pythonhosted.org/packages/5f/f9/afed10c84d7e2da1e99b00fd933da46066c036d3db753712dea2ccc41a9b/pyramid_contextauth-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "0ad1066a107d54313add1648a7217afc", "sha256": "0d7fd9684ce1064c9331c95b0d647a35acc61f891140b5e9ca66b78631452f25" }, "downloads": -1, "filename": "pyramid_contextauth-0.7.tar.gz", "has_sig": false, "md5_digest": "0ad1066a107d54313add1648a7217afc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4635, "upload_time": "2014-04-07T15:48:03", "url": "https://files.pythonhosted.org/packages/a0/f8/6a808c1dbbf3ffb703c41d7d01d16b4dca7c37fc3315a24a3e2d1397cc3d/pyramid_contextauth-0.7.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "be01bcc9c9a56842d4c872fd6e9fce0b", "sha256": "a957099f7ecde228b5118a18132eea75befd2aa71d4546ae2c87eceb266ce3a2" }, "downloads": -1, "filename": "pyramid_contextauth-0.7.1.tar.gz", "has_sig": false, "md5_digest": "be01bcc9c9a56842d4c872fd6e9fce0b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4646, "upload_time": "2014-04-07T15:48:25", "url": "https://files.pythonhosted.org/packages/06/60/65e1ac1beb126ed786e150f4cfcf1e534fff16571207f38c4b6f922a7c7f/pyramid_contextauth-0.7.1.tar.gz" } ], "0.7.2": [ { "comment_text": "", "digests": { "md5": "fb163e3948c841caa9b477a392d9bba9", "sha256": "1b4bca212ef55aa414d809be421248c7733f450db510856ba1c660a130f5c78f" }, "downloads": -1, "filename": "pyramid_contextauth-0.7.2.tar.gz", "has_sig": false, "md5_digest": "fb163e3948c841caa9b477a392d9bba9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4645, "upload_time": "2014-04-07T15:49:13", "url": "https://files.pythonhosted.org/packages/31/6f/e6eb7780850158f47ac414d30dd06aef92ae71304972f1d26ef02432900c/pyramid_contextauth-0.7.2.tar.gz" } ], "0.7.3": [ { "comment_text": "", "digests": { "md5": "56f90e47d0de7800fac75d4de97fc861", "sha256": "5bc136529a38c7cea48e55f0c93df44193865f1ad7c7ecac19827197aac54a73" }, "downloads": -1, "filename": "pyramid_contextauth-0.7.3.tar.gz", "has_sig": false, "md5_digest": "56f90e47d0de7800fac75d4de97fc861", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4646, "upload_time": "2014-08-26T15:44:43", "url": "https://files.pythonhosted.org/packages/ac/fb/5dc1d3f9f70e75ffc2131dcc70730e6279fdc62fe7b0a0f05e5dac0aebf6/pyramid_contextauth-0.7.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "56f90e47d0de7800fac75d4de97fc861", "sha256": "5bc136529a38c7cea48e55f0c93df44193865f1ad7c7ecac19827197aac54a73" }, "downloads": -1, "filename": "pyramid_contextauth-0.7.3.tar.gz", "has_sig": false, "md5_digest": "56f90e47d0de7800fac75d4de97fc861", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4646, "upload_time": "2014-08-26T15:44:43", "url": "https://files.pythonhosted.org/packages/ac/fb/5dc1d3f9f70e75ffc2131dcc70730e6279fdc62fe7b0a0f05e5dac0aebf6/pyramid_contextauth-0.7.3.tar.gz" } ] }