{ "info": { "author": "Livio Ribeiro", "author_email": "livioribeiro@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: CherryPy", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Internet :: WWW/HTTP :: Session" ], "description": "===============================\ncherrypy.authorizer.mongoengine\n===============================\n\nBasic user model, authenticator and authorizer for lribeiro.cherrypy.authorizer and mongoengine\n\nUsage:\n------\n\n.. sourcecode:: python\n\n import cherrypy\n\n from lribeiro.cherrypy.authorizer import authorize\n from lribeiro.cherrypy.authorizer.authentication import AuthControllerDefaultDispatcher\n\n from lribeiro.cherrypy.authorizer.mongoengine.auth import authenticator, authorizer\n\n\n class Root:\n @cherrypy.expose\n def index(self):\n return 'index'\n\n @cherrypy.expose\n @authorize\n def auth_required(self):\n return 'auth required'\n\n @cherrypy.expose\n @authorize({'read': 'page', 'write': 'log'})\n def authorized(self):\n return 'authorized'\n\n @cherrypy.expose\n @authorize({'edit': ['page', 'site']})\n def unauthorized(self):\n return 'unauthorized'\n\n config = {\n '/': {\n 'tools.sessions.on': True,\n 'tools.authorizer.on': True,\n 'auth.authenticator': authenticator,\n 'auth.authorizer': authorizer,\n 'auth.login_page': '/login'\n }\n }\n\n if __name__ == '__main__':\n root = Root()\n root.auth = AuthControllerDefaultDispatcher()\n\n cherrypy.quickstart(root, '/', config)", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/livioribeiro/cherrypy-authorizer-mongoengine", "keywords": "authentication,authorization,access control,cherrypy,mongoengine", "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "lribeiro.cherrypy.authorizer.mongoengine", "package_url": "https://pypi.org/project/lribeiro.cherrypy.authorizer.mongoengine/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lribeiro.cherrypy.authorizer.mongoengine/", "project_urls": { "Homepage": "http://bitbucket.org/livioribeiro/cherrypy-authorizer-mongoengine" }, "release_url": "https://pypi.org/project/lribeiro.cherrypy.authorizer.mongoengine/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Basic user model, authenticator and authorizer for lribeiro.cherrypy.authorizer and mongoengine", "version": "1.0.1" }, "last_serial": 1217268, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "9debc720d3b9a5df8baeb481130fd570", "sha256": "09e2f369abcb51dff58d2e68f4c16a526e23e2616da7f65e22e51213857ef45b" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.mongoengine-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9debc720d3b9a5df8baeb481130fd570", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5915, "upload_time": "2014-09-04T13:24:48", "url": "https://files.pythonhosted.org/packages/99/70/29a6f44391361e9c996106c6997c0458ecfa9205619e1b4d910753e67a5f/lribeiro.cherrypy.authorizer.mongoengine-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eba9ef2ce8868e03d55acaffc351d7f6", "sha256": "3da250933bd53de43c51dd8bd201b22f000bfa3d0c0fed3a72150ec7e4c4057f" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.mongoengine-1.0.tar.gz", "has_sig": false, "md5_digest": "eba9ef2ce8868e03d55acaffc351d7f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3312, "upload_time": "2014-09-04T13:24:50", "url": "https://files.pythonhosted.org/packages/89/00/3d671d40ee0f8672ebb424208fd61060b2aa5c33ac25d7b00764f24ae2e5/lribeiro.cherrypy.authorizer.mongoengine-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "69727ea9cc57d5f21043f01965df25e8", "sha256": "08391f9a418194f21de470b7ac65212f40402c39c4a03b64077e434d42717749" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.mongoengine-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "69727ea9cc57d5f21043f01965df25e8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6186, "upload_time": "2014-09-08T18:14:08", "url": "https://files.pythonhosted.org/packages/f6/65/c94ef5541a9a61fb1f0cd34522e8da52846603b66678922ab5827143be7b/lribeiro.cherrypy.authorizer.mongoengine-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a4f222917b7e09fd715ad5d5b2dc7217", "sha256": "793292cb6e3d6fbb0e0814bac342c85842596d46f161e0008dada103ae50b6ca" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.mongoengine-1.0.1.tar.gz", "has_sig": false, "md5_digest": "a4f222917b7e09fd715ad5d5b2dc7217", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3310, "upload_time": "2014-09-08T18:14:07", "url": "https://files.pythonhosted.org/packages/24/41/14bf143b19641b6efa26d7af99099561e0e4a0f2aeda0c5640a6ab659a7a/lribeiro.cherrypy.authorizer.mongoengine-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "69727ea9cc57d5f21043f01965df25e8", "sha256": "08391f9a418194f21de470b7ac65212f40402c39c4a03b64077e434d42717749" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.mongoengine-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "69727ea9cc57d5f21043f01965df25e8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6186, "upload_time": "2014-09-08T18:14:08", "url": "https://files.pythonhosted.org/packages/f6/65/c94ef5541a9a61fb1f0cd34522e8da52846603b66678922ab5827143be7b/lribeiro.cherrypy.authorizer.mongoengine-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a4f222917b7e09fd715ad5d5b2dc7217", "sha256": "793292cb6e3d6fbb0e0814bac342c85842596d46f161e0008dada103ae50b6ca" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.mongoengine-1.0.1.tar.gz", "has_sig": false, "md5_digest": "a4f222917b7e09fd715ad5d5b2dc7217", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3310, "upload_time": "2014-09-08T18:14:07", "url": "https://files.pythonhosted.org/packages/24/41/14bf143b19641b6efa26d7af99099561e0e4a0f2aeda0c5640a6ab659a7a/lribeiro.cherrypy.authorizer.mongoengine-1.0.1.tar.gz" } ] }