{"id":20844532,"url":"https://github.com/pushpabrol/saml-slo-sample","last_synced_at":"2026-04-24T17:02:19.472Z","repository":{"id":92530049,"uuid":"592914969","full_name":"pushpabrol/saml-slo-sample","owner":"pushpabrol","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-03T13:21:43.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-12T11:17:09.625Z","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/pushpabrol.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":"2023-01-24T20:05:14.000Z","updated_at":"2023-01-27T17:28:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2e4f1bf-6c14-462a-b99a-5f5ef503db43","html_url":"https://github.com/pushpabrol/saml-slo-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pushpabrol/saml-slo-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fsaml-slo-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fsaml-slo-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fsaml-slo-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fsaml-slo-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushpabrol","download_url":"https://codeload.github.com/pushpabrol/saml-slo-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fsaml-slo-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32232622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":[],"created_at":"2024-11-18T02:09:53.830Z","updated_at":"2026-04-24T17:02:19.450Z","avatar_url":"https://github.com/pushpabrol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample passport saml app with SLO with Auth0\n\nThis project uses passport-saml and auth0 to demonstrate SP Initiated SLO with Auth0 \n\n## Requirements\n- node.js\n- express\n- passport saml\n- auth0 tenant with an application and a connection enabled\n\n## Used middlewares\n- passport\n- express cookie\n- express session\n- morgan\n\n## Auth0 Setup\n  * Create an Auth0 tenant\n  * Create an application of type Regular Web Application\n  * Go to the addons tab\n  * Click on the SAML2 WEB APP and then click on settings\n  * Set the Application callback url - `BASEURL/login/callback` where BASEURL is the same as the BASE url of the app you set in the .env file below\n  * Set the `settings` as\n      ```\n      {\n          \"mapUnknownClaimsAsIs\": true,\n          \"passthroughClaimsWithNoMapping\": true,\n          \"logout\": {\n              \"callback\": \"BASEURL/singlelogout\",\n              \"slo_enabled\": true\n          },\n          \"binding\": \"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n      }\n      ```\n   * Scroll to the bottom of this dialog and click \"Save\" and then close the dialog\n   * Make sure your application has at least one connection enabled\n     *   Click on the application's Connections tab and enable the connection you would like to use for this application\n\n## ENV\n Before running the app, you should create your own `.env` file in the root with the following variables:\n```dotenv\nPORT=3001\nISSUER=saml-sp\nBASEURL=\u003capps base url\u003e\nIDP_ENTRYPOINT=\u003cSAML IDP url. You get this value from the Auth0 apps SAML Addon's Usage page\u003e\nIDP_SIGNING_CERT_STR=\"The IDP signing certificate with newlines removed and the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- stripped out\"\nSESSIONSECRET=This is a great big secret for the session\n```\n\n## Running\n    * Make sure you have set the .env file and completed the Auth0 Setup\n  * npm install\n  * npm start\n  * open browser at `BASEURL` and click on login\n  * Once logged in see the SAML Assettion and scroll to the bottom of the page and click logout to see the SLO flow\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushpabrol%2Fsaml-slo-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushpabrol%2Fsaml-slo-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushpabrol%2Fsaml-slo-sample/lists"}