{ "info": { "author": "Thiago Avelino", "author_email": "thiago@avelino.xxx", "bugtrack_url": null, "classifiers": [ "Environment :: Plugins", "Environment :: Web Environment", "Framework :: Bottle", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "bottle-auth\n===========\n\nBottle plugin authentication, support with Google, Twitter and Facebook\n\n\nExample\n-------\n\n.. code-block:: python\n\n from bottle import Bottle, redirect, request, run\n from bottle.ext import auth\n from bottle.ext.auth.decorator import login\n from bottle.ext.auth.social.facebook import Facebook, UserDenied\n from bottle.ext.auth.social.facebook import NegotiationError\n from pprint import pformat\n\n facebook = Facebook('fb-key', 'fb-secret',\n 'http://127.0.0.1:8000/', 'email')\n\n app = Bottle()\n plugin = auth.AuthPlugin(facebook)\n app.install(plugin)\n\n\n @app.route('/login')\n def login(auth):\n return auth.redirect(request.environ)\n\n\n @app.route('/')\n @login(auth)\n def home():\n user = auth.get_user(request.environ)\n return \"Home page {}\".format(pformat(user))\n\n\n run(app=app, host='0.0.0.0', port='3333', debug=True)\n\n\n\nApplication in production: `https://github.com/avelino/mining/blob/master/auth.py `_\n\n\n\nGoogle\n------\n\nCreate project\n++++++++++++++\n\n1. Sign into your Google Apps account in your browser\n2. Visit `https://code.google.com/apis/console#access `_ in the same browser\n3. On the left menu, Create a new Project\n4. To start, you don\u2019t need any Services, so select the API Access tab rom the left menu and \u201cCreate an OAuth 2.0 client ID\u2026\u201d\n5. Fill out the Client ID form for a **web application** and use *localhost:8000* as your hostname\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/avelino/bottle-auth", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "bottle-auth", "package_url": "https://pypi.org/project/bottle-auth/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bottle-auth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/avelino/bottle-auth" }, "release_url": "https://pypi.org/project/bottle-auth/0.3.3/", "requires_dist": null, "requires_python": null, "summary": "Bootle authentication, for Personal, Google, Twitter and facebook.", "version": "0.3.3" }, "last_serial": 1179691, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "7dd2a51d4885f359b65f0447622965a8", "sha256": "52e7b8d3cab7498a4e0d61088bed2f6ed51b82bab86d86c74319b307509e69f3" }, "downloads": -1, "filename": "bottle-auth-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7dd2a51d4885f359b65f0447622965a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1600, "upload_time": "2014-03-24T20:38:17", "url": "https://files.pythonhosted.org/packages/d6/5e/8a2826b3bd3828152b7c3186335e48c8c19f6fb021cbb3028d607b83dc81/bottle-auth-0.1.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "4e46ae598cd54c61b2d0bb991988ebc0", "sha256": "911a885b248b85db5dd1965cf4e07732c22b79f7d217a29a56af139abe6435b2" }, "downloads": -1, "filename": "bottle-auth-0.2.3.tar.gz", "has_sig": false, "md5_digest": "4e46ae598cd54c61b2d0bb991988ebc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1652, "upload_time": "2014-03-25T20:25:11", "url": "https://files.pythonhosted.org/packages/b5/70/880877ed1e69d21cbefd0943b76ea1e749ab334b0315db153f3e9407ded6/bottle-auth-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "91352c65958c3ae95ecdb73b37ef3eb4", "sha256": "919f044403fde03df764db59e2b1b246f98644b263409002d0de4b772ff90948" }, "downloads": -1, "filename": "bottle-auth-0.3.0.tar.gz", "has_sig": false, "md5_digest": "91352c65958c3ae95ecdb73b37ef3eb4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1819, "upload_time": "2014-04-04T14:17:01", "url": "https://files.pythonhosted.org/packages/42/5e/d31926a6092f470c69527d836b8acc771ef1b641c671c0257af9977e7c02/bottle-auth-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "53d89d485312666d761dd6897f74b760", "sha256": "135daac4dcad6f2b358734b21763623d12960997768a57ff3be82e910cd3e0aa" }, "downloads": -1, "filename": "bottle-auth-0.3.1.tar.gz", "has_sig": false, "md5_digest": "53d89d485312666d761dd6897f74b760", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1855, "upload_time": "2014-05-07T03:29:57", "url": "https://files.pythonhosted.org/packages/fb/fa/a22e74d58d9ce46a798213847b292adfd35545102eb089399dfeac4da69e/bottle-auth-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "0a74511afd45f7ddb189a9d98b50024b", "sha256": "af50b47735d8d89cd56d0cf97c42606af066500e4d376449ee69e771f9d6f0e6" }, "downloads": -1, "filename": "bottle-auth-0.3.2.tar.gz", "has_sig": false, "md5_digest": "0a74511afd45f7ddb189a9d98b50024b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23116, "upload_time": "2014-08-04T01:42:54", "url": "https://files.pythonhosted.org/packages/a4/b4/6334f556040646f3421ac93bd158a4c3d1094a16cb91a8c426dbade05574/bottle-auth-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "16a05f706ed7e2d86cac40f1409433a5", "sha256": "01ebb491e1a6b940716d24e7cbf860d02384fc82df0e1c76607fa1bf1c377385" }, "downloads": -1, "filename": "bottle-auth-0.3.3.tar.gz", "has_sig": false, "md5_digest": "16a05f706ed7e2d86cac40f1409433a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23104, "upload_time": "2014-08-04T18:44:41", "url": "https://files.pythonhosted.org/packages/df/c0/b9c959780b4f228c09d70bf25e93f586477f29bc8bbc6969d3d243784602/bottle-auth-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "16a05f706ed7e2d86cac40f1409433a5", "sha256": "01ebb491e1a6b940716d24e7cbf860d02384fc82df0e1c76607fa1bf1c377385" }, "downloads": -1, "filename": "bottle-auth-0.3.3.tar.gz", "has_sig": false, "md5_digest": "16a05f706ed7e2d86cac40f1409433a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23104, "upload_time": "2014-08-04T18:44:41", "url": "https://files.pythonhosted.org/packages/df/c0/b9c959780b4f228c09d70bf25e93f586477f29bc8bbc6969d3d243784602/bottle-auth-0.3.3.tar.gz" } ] }