{"id":18298638,"url":"https://github.com/fusionauth/fusionauth-example-node-sso","last_synced_at":"2026-03-04T14:02:18.247Z","repository":{"id":71200463,"uuid":"329462932","full_name":"FusionAuth/fusionauth-example-node-sso","owner":"FusionAuth","description":"Example of single sign-on with FusionAuth and node","archived":false,"fork":false,"pushed_at":"2024-07-28T05:55:26.000Z","size":133,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-12-17T14:43:58.699Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/FusionAuth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-14T00:08:40.000Z","updated_at":"2024-09-16T20:12:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"331b594e-e94c-4a86-bd01-a98d81479498","html_url":"https://github.com/FusionAuth/fusionauth-example-node-sso","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FusionAuth/fusionauth-example-node-sso","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-node-sso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-node-sso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-node-sso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-node-sso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FusionAuth","download_url":"https://codeload.github.com/FusionAuth/fusionauth-example-node-sso/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-node-sso/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30083004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T13:22:36.021Z","status":"ssl_error","status_checked_at":"2026-03-04T13:20:45.750Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["hacktoberfest"],"created_at":"2024-11-05T15:06:36.164Z","updated_at":"2026-03-04T14:02:18.220Z","avatar_url":"https://github.com/FusionAuth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FusionAuth Node.js SSO example\n\nThis project is two simple example Node.js applications that illustrates how you can easily implement single sign-on (SSO) using FusionAuth.\n\n## Prerequisites\n\nDocker and the ability to edit your DNS hosts.\n\n## To run\n\n* Create two local aliases in your DNS: `hooli.local` and `piedpiper.local`, both resolving to `127.0.0.1`.\n* Run `docker compose up -d`. This will run FusionAuth and configure it using [Kickstart](https://fusionauth.io/docs/get-started/download-and-install/development/kickstart)\n  * Two users are created, both with the password `password. \n    * admin@example.com is an admin user that can log into the admin UI, located at http://localhost:9011.\n    * richard@example.com is a user that can log into the two application you'll start below. \n  * To stop FusionAuth later, run `docker compose down`\n* In the `pied-piper` directory, run:\n  * `npm install`\n  * `PORT=3000 npm start`\n* In the `hooli` directory, run:\n  * `npm install`\n  * `PORT=3001 npm start`\n\nGo to `http://hooli.local:3001/` and login with `richard@example.com`. *check 'keep me signed in'*.\n\nYou should see 'Hello user'.\n\nThen click on the 'Pied Piper' link in the menu to go to `http://piedpiper.local:3000`. You won't be prompted to sign in again, but will instead automatically be logged in.\n\nClick 'logout' and you'll be logged out of both applications. \n\n## Known issues\n\nLogout only works with on hosts with valid TLS certificates due to browser limitations. If you don't have easy access to a FusionAuth instance with a valid TLS certificate, try using https://sandbox.fusionauth.io for the FusionAuth server. This is a **shared** host.\n\nSetting up TLS certificates for local development is beyond the scope of this tutorial, but if you set up all three applications: piediper, hooli and FusionAuth with TLS, then logout will work.\n\n## Last updated\n\nThis was last reviewed Jun 2024.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-example-node-sso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusionauth%2Ffusionauth-example-node-sso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-example-node-sso/lists"}