{"id":19806418,"url":"https://github.com/ory/hydra-login-consent-node","last_synced_at":"2025-04-09T05:11:18.058Z","repository":{"id":32675769,"uuid":"132005972","full_name":"ory/hydra-login-consent-node","owner":"ory","description":"This is an ExpressJS reference implementation for the ORY Hydra User Login and Consent interface written in TypeScript and ExpressJS.","archived":false,"fork":false,"pushed_at":"2024-09-23T07:50:20.000Z","size":725,"stargazers_count":304,"open_issues_count":7,"forks_count":126,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-10-29T14:55:25.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.ory.sh/hydra","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"_ory","open_collective":"ory"}},"created_at":"2018-05-03T14:19:57.000Z","updated_at":"2024-10-13T18:14:58.000Z","dependencies_parsed_at":"2024-04-12T09:21:43.660Z","dependency_job_id":"276aec71-1256-4c24-a424-49027e83843b","html_url":"https://github.com/ory/hydra-login-consent-node","commit_stats":{"total_commits":247,"total_committers":20,"mean_commits":12.35,"dds":0.291497975708502,"last_synced_commit":"fa5bb14c2696a28594c4745161109502d3aa76d5"},"previous_names":[],"tags_count":135,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fhydra-login-consent-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fhydra-login-consent-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fhydra-login-consent-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fhydra-login-consent-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ory","download_url":"https://codeload.github.com/ory/hydra-login-consent-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675614,"owners_count":20977379,"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-11-12T09:07:30.627Z","updated_at":"2025-04-09T05:11:18.043Z","avatar_url":"https://github.com/ory.png","language":"TypeScript","funding_links":["https://patreon.com/_ory","https://opencollective.com/ory"],"categories":[],"sub_categories":[],"readme":"# hydra-user-and-consent-provider-node\n\nThis is a reference implementation for the User Login and Consent flow of Ory\nOAuth2 service (Hydra) in NodeJS. The application is bootstrapped using the\n`express` cli.\n\n---\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Overview](#overview)\n- [Running](#running)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n---\n\n## Overview\n\nApart from additions (`./routes/login.ts`, `./routes/consent.ts`) and their\nrespective templates, only a [CSRF Middleware] has been added. Everything else\nis the standard express template.\n\nAlso, a simple helper that makes HTTP requests has been added to\n`./services/hydra.js` which uses the `node-fetch` library.\n\nTo set this example up with ORY Hydra, please refer to the\n[official documentation](https://www.ory.sh/docs).\n\n## Running\n\nPlease head over to the\n[ORY Hydra 5 Minute Tutorial](https://www.ory.sh/docs/hydra/5min-tutorial) to\nsee how this works.\n\n## FAQ\n\n### TLS Termination\n\nYou can mock TLS Termination by setting environment variable\n`MOCK_TLS_TERMINATION` to any value, for example `MOCK_TLS_TERMINATION=y`. This\nwill add `X-Forwarded-Proto: https` to each HTTP Request Header.\n\n### Integrating with Ory Network\n\nTo integrate this example app with Ory Cloud Oauth2 Service set variable\n`ORY_API_KEY` with value of your\n[Ory API Key / Ory Personal Access Token](https://www.ory.sh/docs/concepts/personal-access-token)\nand set `HYDRA_ADMIN_URL` to the value of you Ory Cloud API URL which you can\nfind in your\n[Ory Cloud Project](https://www.ory.sh/docs/concepts/terminology#ory-cloud-project)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fory%2Fhydra-login-consent-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fory%2Fhydra-login-consent-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fory%2Fhydra-login-consent-node/lists"}