{"id":31107876,"url":"https://github.com/scalekit-developers/sso-express-demo","last_synced_at":"2026-05-04T09:31:40.375Z","repository":{"id":278147326,"uuid":"897858247","full_name":"scalekit-developers/sso-express-demo","owner":"scalekit-developers","description":"Simple Express.js SSO demo - basic authentication flow implementation","archived":false,"fork":false,"pushed_at":"2025-09-24T05:54:54.000Z","size":661,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-24T07:31:02.891Z","etag":null,"topics":["authentication","basic-flow","demo","express","javascript","nodejs","sso"],"latest_commit_sha":null,"homepage":"https://docs.scalekit.com/sso/quickstart?tech-stack=nodejs","language":"EJS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scalekit-developers.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-03T11:11:44.000Z","updated_at":"2025-09-24T05:54:58.000Z","dependencies_parsed_at":"2025-02-18T08:41:31.621Z","dependency_job_id":"58cdb16e-ccc4-4ea5-80df-dd02ad96e185","html_url":"https://github.com/scalekit-developers/sso-express-demo","commit_stats":null,"previous_names":["scalekit-inc/sso-express-example","scalekit-developers/sso-express-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scalekit-developers/sso-express-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalekit-developers%2Fsso-express-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalekit-developers%2Fsso-express-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalekit-developers%2Fsso-express-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalekit-developers%2Fsso-express-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scalekit-developers","download_url":"https://codeload.github.com/scalekit-developers/sso-express-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalekit-developers%2Fsso-express-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32601497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["authentication","basic-flow","demo","express","javascript","nodejs","sso"],"created_at":"2025-09-17T05:59:53.198Z","updated_at":"2026-05-04T09:31:40.369Z","avatar_url":"https://github.com/scalekit-developers.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Single Sign On example app with Scalekit\n\nA simple web application demonstrating Single Sign-On (SSO) authentication using Scalekit, Node.js, Express, and Tailwind CSS. This example shows how to implement secure authentication flows using Scalekit's SSO service.\n\n![App Overview](public/images/login-page.png)\n\nFor more screenshots, see the [screenshots folder](public/images).\n\n## Features\n\n- Single Sign-On (SSO) authentication powered by Scalekit\n- Secure user authentication and session management\n- Profile viewing and management after successful login\n- Clean and modern UI using Tailwind CSS\n- Server-side rendering with EJS templates\n- Example of Scalekit SSO integration\n\n## Setup\n\nYou can use either Bun or npm to run this project.\n\n### Using Bun (Recommended)\n\n1. Install dependencies:\n\n```bash\nbun install\n```\n\n2. Build Tailwind CSS:\n\n```bash\nbun run build:css\n```\n\n3. Start the server:\n\n```bash\nbun run dev\n```\n\n### Using npm\n\n1. Install dependencies:\n\n```bash\nnpm install\n```\n\n2. Build Tailwind CSS:\n\n```bash\nnpm run build:css\n```\n\n3. Start the server:\n\n```bash\nnpm run dev\n```\n\n4. Visit http://localhost:3001 in your browser\n\n## Scalekit SDK methods \n\n```js\nconst response = await scalekit.authenticateWithCode(code, redirectUri);\n```\n\nExample\n```js\n{\n  user: {\n    email: 'john@example.com',\n    familyName: 'Doe',\n    givenName: 'John',\n    username: 'john@example.com',\n    id: 'conn_70087756662964366;dcc62570-6a5a-4819-b11b-d33d110c7716'\n  },\n  idToken: 'eyJhbGciOiJSUzI1NiIsImtpZCI6InNua183MDA4Nzc1NTQ3MTc4MjAzMCIsInR5cCI6IkpXVCJ9.eyJhbXIiOlsiY29ubl83MDA4Nzc1NjY2Mjk2NDM2NiJdLCJhdF9oYXNoIjoibFZ1clptNE5acTI4LWhvamh5ZlJDUSIsImF1ZCI6WyJza2NfNzAwODc3NTYzMjc0MjAwNDYiXSwiYXpwIjoic2tjXzcwMDg3NzU2MzI3NDIwMDQ2IiwiY19oYXNoIjoiam5oZWhPOXlleE9Ea3BSV2syNzdvZyIsImNsaWVudF9pZCI6InNrY183MDA4Nzc1NjMyNzQyMDA0NiIsImVtYWlsIjoiam9obkBleGFtcGxlLmNvbSIsImV4cCI6MTc1ODk1MjIxNiwiZmFtaWx5X25hbWUiOiJEb2UiLCJnaXZlbl9uYW1lIjoiSm9obiIsImlhdCI6MTc1ODY5MzAxNiwiaXNzIjoiaHR0cHM6Ly9zY2FsZWtpdC03ZWFoY2RpYWFjaGEtZGV2LnNjYWxla2l0LmNsb3VkIiwib2lkIjoib3JnXzcwMDg3NzU2NjQ2MTg3MTUwIiwicHJlZmVycmVkX3VzZXJuYW1l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OyFjxF_fmQeLYUGSda-qz2X8eH5IL_Cjj8N_fPhhS8G13jd0yysJ0V61xsoNECRDO4ebZRNUm4fYvEdLIZHw3DIszS7PGbivRNfzG8p1O_LtBTu_zJtGOjUI3cQCx3Jk7XPwAREwq2qJBecQ03gU0WySRY8YRQSeP9amcs2Mqv43vjxkG7Atphnt1g23vkZK30y33L0ylvhepw9k0-wwF3OhVpw',\n  expiresIn: 899\n}\n```\n\n#### Decoded `idToken`\n```js\n{\n  amr: [ 'conn_70087756662964366' ],\n  at_hash: 'yMGIBg7BkmIGgD6_dZPEGQ',\n  aud: [ 'skc_70087756327420046' ],\n  azp: 'skc_70087756327420046',\n  c_hash: '4x7qsXnlRw6dRC6twnuENw',\n  client_id: 'skc_70087756327420046',\n  email: 'john@example.com',\n  exp: 1758952038,\n  family_name: 'Doe',\n  given_name: 'John',\n  iat: 1758692838,\n  iss: 'https://scalekit-7eahcdiaacha-dev.scalekit.cloud',\n  oid: 'org_70087756646187150',\n  preferred_username: 'john@example.com',\n  sid: 'ses_91646612652163629',\n  sub: 'conn_70087756662964366;e964d135-35c7-4a13-a3b4-2579a1cdf4e6'\n}\n```\n#### Decoded access token\n```js\n{\n  \"iss\": \"https://scalekit-7eahcdiaacha-dev.scalekit.cloud\",\n  \"sub\": \"conn_70087756662964366;dcc62570-6a5a-4819-b11b-d33d110c7716\",\n  \"aud\": [\n    \"skc_70087756327420046\"\n  ],\n  \"exp\": 1758693916,\n  \"iat\": 1758693016,\n  \"nbf\": 1758693016,\n  \"client_id\": \"skc_70087756327420046\",\n  \"jti\": \"tkn_91646913048216109\"\n}\n```\n\n## Demo Credentials\n\n- Username: demo\n- Password: demo123\n\n## Technologies Used\n\n- Scalekit SSO Service\n- Bun.js Runtime\n- Node.js\n- Express.js\n- EJS Templates\n- Tailwind CSS\n- express-session for session management\n- bcryptjs for password hashing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalekit-developers%2Fsso-express-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscalekit-developers%2Fsso-express-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalekit-developers%2Fsso-express-demo/lists"}