{"id":16443267,"url":"https://github.com/avelino/bottle-auth","last_synced_at":"2025-07-17T16:03:19.027Z","repository":{"id":15040296,"uuid":"17766211","full_name":"avelino/bottle-auth","owner":"avelino","description":"Bootle authentication, for Personal, Google, Twitter and facebook","archived":false,"fork":false,"pushed_at":"2017-02-19T18:04:14.000Z","size":381,"stargazers_count":29,"open_issues_count":6,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-21T01:46:05.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/bottle-auth","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avelino.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-15T02:07:51.000Z","updated_at":"2023-07-17T08:44:18.000Z","dependencies_parsed_at":"2022-09-07T14:00:31.230Z","dependency_job_id":null,"html_url":"https://github.com/avelino/bottle-auth","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/avelino/bottle-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avelino%2Fbottle-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avelino%2Fbottle-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avelino%2Fbottle-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avelino%2Fbottle-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avelino","download_url":"https://codeload.github.com/avelino/bottle-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avelino%2Fbottle-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265625568,"owners_count":23800624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T09:19:51.697Z","updated_at":"2025-07-17T16:03:19.007Z","avatar_url":"https://github.com/avelino.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"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, 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\n    from pprint import pformat\n\n    facebook = Facebook('fb-key', 'fb-secret',\n                        'http://127.0.0.1:3333/', 'email')\n\n    app = Bottle()\n    plugin = auth.AuthPlugin(facebook)\n    app.install(plugin)\n\n\n    @app.route('/')\n    @login()\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\nApplication in production: `https://github.com/avelino/mining/blob/master/mining/auth.py \u003chttps://github.com/avelino/mining/blob/master/mining/auth.py\u003e`_\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 \u003chttps://code.google.com/apis/console#access\u003e`_ in the same browser\n3. On the left menu, Create a new Project\n4. To start, you don’t need any Services, so select the API Access tab rom the left menu and “Create an OAuth 2.0 client ID…”\n5. Fill out the Client ID form for a **web application** and use *localhost:8000* as your hostname\n\n\nFacebook\n--------\n\nCreate project\n++++++++++++++\n\n1. Sign into your Facebook account in your browser\n2. Visit `https://developers.facebook.com/ \u003chttps://developers.facebook.com/\u003e`_ in the same browser\n3. Click Apps \u003e Create a New App in the navigation bar\n4. Enter Display Name, then choose a category, then click Create app\n5. Fill out the Client ID form for a **web application** and use *localhost:8000* as your hostname\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favelino%2Fbottle-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favelino%2Fbottle-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favelino%2Fbottle-auth/lists"}