{"id":19836890,"url":"https://github.com/pj8912/flask-google-login","last_synced_at":"2025-09-18T10:33:06.641Z","repository":{"id":194023287,"uuid":"656151098","full_name":"pj8912/flask-google-login","owner":"pj8912","description":"Login app using google OAuth in Flask ","archived":false,"fork":false,"pushed_at":"2024-01-11T13:21:18.000Z","size":16,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-12T12:13:08.330Z","etag":null,"topics":["flask","google-oauth2","login-system","python3","sqlite3"],"latest_commit_sha":null,"homepage":"https://github.com/pj8912/flask-google-login","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pj8912.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-20T10:58:58.000Z","updated_at":"2024-05-18T14:16:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae5b8cec-42a3-4f72-a1e7-33d87381f21b","html_url":"https://github.com/pj8912/flask-google-login","commit_stats":null,"previous_names":["pj8912/flask-google-login"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fflask-google-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fflask-google-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fflask-google-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fflask-google-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pj8912","download_url":"https://codeload.github.com/pj8912/flask-google-login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233472450,"owners_count":18681402,"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":["flask","google-oauth2","login-system","python3","sqlite3"],"created_at":"2024-11-12T12:12:46.132Z","updated_at":"2025-09-18T10:33:01.341Z","avatar_url":"https://github.com/pj8912.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-google-login\nRegister and Login with Google OAuth using Flask and SQLite\n\n\n## Install requirements\n\n```shell\npip install -r requirements.txt\n```\n---\n\u003cbr\u003e\n\n\u003e In google developer console create a project and \ncredentials\n\n\u003cbr\u003e\n\n---\n\n## Setup `.env` variables\nCreate a `.env`add these variables and their respective values :\n\n- `APP_SECRET=` YOUR CLIENT SECRET\n- `CLIENT_ID=` YOUR CLIENT ID \n\n## Download Client Secret\n- Download your `client secret` json file and rename it to `client_secret.json` and place it in the root folder of this app\n\n\n## Create SQLite database\n- Run \n```\npython created_db.py\n```\n\n to create your the sqlite databse `users.sqlite3` which will store the users on registration automatically.\n\n\n## Add `/callback` URIs to Authorized URIs in google developer console\n\n- The app runs on `http://localhost:3000`\n- I use two different routes for login and registration\n- In you `Authorized URIs` section add these following two URIs \n   \n   - ```\n     http://localhost:300/callback\n     ```\n   - ```\n     http://localhost:3000/login/callback\n     ```\n    \n    and click `SAVE`  \n\n## Start\n```\n$ python app.py\n```\nOpen : \n```\nhttp://localhost:3000\n```\n\n## Working \n\n- Seperate flows for registration and login\n\n- On registration, the user's google username, password and the oauthId which is unique per user is stored in the database and redirected to home\n\n- On login, the process takes flow and checks the email that is used for login is already in the database and creates a session redirecting to home where you can see a welcome message and logout link, or it will simply redirect to home\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpj8912%2Fflask-google-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpj8912%2Fflask-google-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpj8912%2Fflask-google-login/lists"}