{"id":21810477,"url":"https://github.com/hi-shekhar/node_oauth2","last_synced_at":"2025-07-15T03:41:09.659Z","repository":{"id":219509711,"uuid":"622691093","full_name":"hi-shekhar/node_oauth2","owner":"hi-shekhar","description":"Oauth2 authentication using passport","archived":false,"fork":false,"pushed_at":"2023-04-10T12:22:53.000Z","size":207,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T17:56:05.121Z","etag":null,"topics":["authentication","authorization","cookie","ejs","express-session","google","knex","nodejs","oauth2","passportjs","postgresql","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/hi-shekhar.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}},"created_at":"2023-04-02T20:55:47.000Z","updated_at":"2023-04-10T22:08:13.000Z","dependencies_parsed_at":"2024-01-28T01:09:26.900Z","dependency_job_id":"3ec99ec3-9a8f-4cf5-ace8-6a991a828c85","html_url":"https://github.com/hi-shekhar/node_oauth2","commit_stats":null,"previous_names":["hi-shekhar/node_oauth2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hi-shekhar/node_oauth2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi-shekhar%2Fnode_oauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi-shekhar%2Fnode_oauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi-shekhar%2Fnode_oauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi-shekhar%2Fnode_oauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hi-shekhar","download_url":"https://codeload.github.com/hi-shekhar/node_oauth2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi-shekhar%2Fnode_oauth2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265398337,"owners_count":23758470,"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":["authentication","authorization","cookie","ejs","express-session","google","knex","nodejs","oauth2","passportjs","postgresql","typescript"],"created_at":"2024-11-27T13:35:56.268Z","updated_at":"2025-07-15T03:41:09.639Z","avatar_url":"https://github.com/hi-shekhar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node OAuth 2.0\n\nThe Application implement the OAuth 2.0 using Node.js and Passport.js\n## Login Page\n![Auth Page Screen Shot](./assets/auth_page.png)\n\n## Consent Page\n![Consent Page Screen Shot](./assets/consent_page.png)\n\n## User Profile Page\n![Logged In Page Screen Shot](./assets/logged_in_page.png)\n\n\n## Built With\n1. Node.js\n2. Passport.js\n3. Postgres SQL\n4. EJS\n5. Knex\n\n## Installation\n\n1. Clone the repo\n   ```sh\n   git clone https://github.com/shekbruce/node_oauth2.git\n   ```\n2. Install NPM packages\n   ```sh\n   npm install\n   ```\n\n## Running the application\n\n1. Create .env file and add below enironment variables\n    * PORT\n    * DB_CLIENT\n    * DB_HOST\n    * DB_PORT\n    * DB_USER\n    * DB_PASSWORD\n    * DB_NAME\n    * GOOGLE_CLIENT_ID\n    * GOOGLE_CLIENT_SECRET\n    * GOOGLE_REDIRECT_URL\n    * SECRET_KEY\n2. ```sh\n   npm run dev-start\n   ``` \n3. Go to http://localhost:PORT/  \n\n## Application Work flow\n\n![Application work flow](./assets/workflow.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhi-shekhar%2Fnode_oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhi-shekhar%2Fnode_oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhi-shekhar%2Fnode_oauth2/lists"}