{"id":24408896,"url":"https://github.com/codesandtags/examples-oauth","last_synced_at":"2025-06-15T12:39:19.709Z","repository":{"id":267573289,"uuid":"899756983","full_name":"codesandtags/examples-oauth","owner":"codesandtags","description":"This repository contains examples of implementing OAuth 2.0 flows using Node.js and Express.js","archived":false,"fork":false,"pushed_at":"2024-12-11T21:34:35.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T09:37:16.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/codesandtags.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":"2024-12-07T00:17:30.000Z","updated_at":"2024-12-11T21:34:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"e397ea9e-9519-40dd-88aa-9ebc397d7912","html_url":"https://github.com/codesandtags/examples-oauth","commit_stats":null,"previous_names":["codesandtags/examples-oauth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codesandtags/examples-oauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesandtags%2Fexamples-oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesandtags%2Fexamples-oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesandtags%2Fexamples-oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesandtags%2Fexamples-oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codesandtags","download_url":"https://codeload.github.com/codesandtags/examples-oauth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesandtags%2Fexamples-oauth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259977661,"owners_count":22941115,"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":"2025-01-20T05:53:30.595Z","updated_at":"2025-06-15T12:39:19.702Z","avatar_url":"https://github.com/codesandtags.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Examples of OAuth 2.0 Flows\n\nThis repository contains examples of implementing OAuth 2.0 flows using Node.js and Express.js. Each subfolder demonstrates a different flow:\n\n- `authorization-code`: Implements the traditional OAuth 2.0 Authorization Code flow.\n- `pkce`: Implements the OAuth 2.0 Authorization Code flow with PKCE for enhanced security.\n\n## Prerequisites\n\n1. Install [Node.js](https://nodejs.org/).\n2. Clone this repository:\n   ```bash\n   git clone \u003crepository-url\u003e\n   ```\n3. Install dependencies for each example:\n\n```bash\ncd examples-oauth/\u003cexample-folder\u003e\nnpm install\n```\n\n4. Replace YOUR_CLIENT_ID, YOUR_CLIENT_SECRET (if applicable), and https://example.com/oauth with your actual OAuth provider details in the code.\n\n## References\n\n- [RFC 6749: The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749)\n- [RFC 7636: Proof Key for Code Exchange by OAuth Public Clients](https://tools.ietf.org/html/rfc7636)\n- [RFC 9126: OAuth 2.0 Pushed Authorization Requests (PAR)](https://tools.ietf.org/html/rfc9126)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesandtags%2Fexamples-oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesandtags%2Fexamples-oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesandtags%2Fexamples-oauth/lists"}