{"id":25195170,"url":"https://github.com/siongui/webpy-oauth","last_synced_at":"2025-06-16T00:05:37.152Z","repository":{"id":46078320,"uuid":"13573411","full_name":"siongui/webpy-oauth","owner":"siongui","description":"Basic OAuth 2.0 Support (Google and Facebook Login) for Web.py","archived":false,"fork":false,"pushed_at":"2021-11-16T02:10:45.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-08T02:47:26.945Z","etag":null,"topics":["facebook","facebook-login","python","secret","webpy"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siongui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-14T21:13:44.000Z","updated_at":"2023-05-14T06:17:18.000Z","dependencies_parsed_at":"2022-08-30T21:30:10.146Z","dependency_job_id":null,"html_url":"https://github.com/siongui/webpy-oauth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/siongui/webpy-oauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siongui%2Fwebpy-oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siongui%2Fwebpy-oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siongui%2Fwebpy-oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siongui%2Fwebpy-oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siongui","download_url":"https://codeload.github.com/siongui/webpy-oauth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siongui%2Fwebpy-oauth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260072451,"owners_count":22954910,"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":["facebook","facebook-login","python","secret","webpy"],"created_at":"2025-02-10T00:50:31.309Z","updated_at":"2025-06-16T00:05:37.125Z","avatar_url":"https://github.com/siongui.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic OAuth 2.0 Support for [Web.py](http://webpy.org/)\n\nImplement basic OAuth 2.0 support for web.py. Inspired by [simpleauth](https://github.com/crhym3/simpleauth).\n\n## Supported providers:\n\n  - Google (OAuth 2.0)\n\n    - Doc:\n\n      - [Using OAuth 2.0 for Web Server Applications](https://developers.google.com/accounts/docs/OAuth2WebServer)\n\n      - [Using OAuth 2.0 for Login](https://developers.google.com/accounts/docs/OAuth2Login)\n\n    - Create App \u0026 Get client ID/Secret:\n\n      - [Google Cloud Console](https://cloud.google.com/console)\n\n    - Scopes:\n\n      - `https://www.googleapis.com/auth/userinfo.profile`: Userinfo - Profile\n\n      - `https://www.googleapis.com/auth/userinfo.email`: Userinfo - Email\n\n      - Reference: [List of Google OAuth Scopes](http://www.subinsb.com/2013/04/list-google-oauth-scopes.html)\n\n  - Facebook (OAuth 2.0)\n\n    - Doc:\n\n      - [The Login Flow for Web (without JavaScript SDK)](https://developers.facebook.com/docs/facebook-login/login-flow-for-web-no-jssdk/)\n\n    - Create App \u0026 Get client ID/Secret:\n\n      - [Facebook Developers](https://developers.facebook.com/apps)\n\n    - Scopes:\n\n      - `email`: Provides access to the primary email address of the user in the email property.\n\n      - `user_about_me`: Provides access to the \"About Me\" section of the profile in the about property\n\n      - Reference: [Permissions](https://developers.facebook.com/docs/facebook-login/permissions/)\n\n## Dependency\n\n  - Web.py: see [Web.py Install Guide](http://webpy.org/install) to install web.py.\n\n## Usage \u0026 Example\n\n1. Create app \u0026 get client id/secret from providers. (Google: [Google Cloud Console](https://cloud.google.com/console), Facebook: [Facebook Developers](https://developers.facebook.com/apps))\n\n2. Put `auth.py` in your project root dir, and also add your project root dir to sys path. `auth.py` handles OAuth 2.0 process for you, and you do not need to modify this script.\n\n3. In you main python script, create a request handler by subclassing `auth.handler`. Set url routing and client id/secret. Please refer to `login.py` for a complete example.\n\n4. You can run the example (remember to modify app id/secret and `callback_uri` function in the exmaple) by the following bash command:\n```bash\n$ python login.py\n```\n\n## References\n\n  - [SimpleAuth](https://github.com/crhym3/simpleauth)\n\n  - [Facebook login on top of webpy](http://matteolandi.blogspot.tw/2012/09/facebook-login-on-top-of-webpy.html)\n\n  - [Facebook OAuth Example](http://facebook-python-library.docs-library.appspot.com/facebook-python/examples/oauth.html)\n\n## Other\n\nThis project is released in public domain, see [UNLICENSE](http://unlicense.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiongui%2Fwebpy-oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiongui%2Fwebpy-oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiongui%2Fwebpy-oauth/lists"}