{"id":29573180,"url":"https://github.com/auth0-samples/auth0-sso-sample","last_synced_at":"2025-07-19T05:32:11.353Z","repository":{"id":24103427,"uuid":"27491139","full_name":"auth0-samples/auth0-sso-sample","owner":"auth0-samples","description":"Doing Single Sign On between SPAs and Regular Web Apps","archived":false,"fork":false,"pushed_at":"2020-01-27T20:50:37.000Z","size":58,"stargazers_count":67,"open_issues_count":5,"forks_count":41,"subscribers_count":56,"default_branch":"master","last_synced_at":"2024-04-10T16:07:56.791Z","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":"onevcat/APNGKit","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/auth0-samples.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":null,"security":null,"support":null}},"created_at":"2014-12-03T14:34:20.000Z","updated_at":"2024-01-12T10:11:47.000Z","dependencies_parsed_at":"2022-07-07T20:31:38.859Z","dependency_job_id":null,"html_url":"https://github.com/auth0-samples/auth0-sso-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/auth0-samples/auth0-sso-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0-samples%2Fauth0-sso-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0-samples%2Fauth0-sso-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0-samples%2Fauth0-sso-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0-samples%2Fauth0-sso-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/auth0-samples","download_url":"https://codeload.github.com/auth0-samples/auth0-sso-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0-samples%2Fauth0-sso-sample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265893936,"owners_count":23845183,"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-07-19T05:32:07.673Z","updated_at":"2025-07-19T05:32:11.334Z","avatar_url":"https://github.com/auth0-samples.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSO sample\n\nThis is the example for the [SSO article](https://docs.auth0.com/sso/single-sign-on). In here, you'll see how to implement SSO between Single Page Apps and Regular Web Apps using Auth0.\n\n## Structure\n\nIn this example, we have 3 applications:\n\n* app1.com (single page app)\n* app2.com (single page app)\n* app3.com (regular web app)\n\nEach application has its own folder in this repository with its own instructions on how to run it. \n\n## Running\n\nIn order to be able to test SSO correctly, each application must have its own domain. For that, you can edit your `/etc/hosts` and make app1.com, app2.com and app3.com all point to `127.0.0.1`.\n\nFor that, open `/etc/hosts` and edits as follows:\n\n````\n##\n# Host Database\n#\n# localhost is used to configure the loopback interface\n# when the system is booting.  Do not change this entry.\n##\n127.0.0.1 localhost\n255.255.255.255 broadcasthost\n::1             localhost \n# ...\n127.0.0.1 app1.com\n127.0.0.1 app2.com\n127.0.0.1 app3.com\n````\n\nOnce that's done, just run all 3 applications (See specific instructions on each README) and go to [`app1.com:3000`](http://app1.com:3000) to start using the applications :).\n\n## Learning\n\nTo learn more about how this 3 apps work with SSO, please read the [SSO article](https://docs.auth0.com/sso/single-sign-on) from our docs.\n\n## Issue Reporting\n\nIf you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.\n\n## Author\n\n[Auth0](auth0.com)\n\n## License\n\nThis project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauth0-samples%2Fauth0-sso-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauth0-samples%2Fauth0-sso-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauth0-samples%2Fauth0-sso-sample/lists"}