{"id":20753837,"url":"https://github.com/shivabhattacharjee/sso","last_synced_at":"2025-09-27T21:32:06.533Z","repository":{"id":241558727,"uuid":"807030633","full_name":"ShivaBhattacharjee/sso","owner":"ShivaBhattacharjee","description":"SSO is a Single Sign-On (SSO) system that allows users to seamlessly authenticate across multiple applications using a single set of credentials. Built with Next.js, PostgreSQL, Prisma, and Tailwind CSS, SSO offers a secure and efficient way to manage user authentication","archived":false,"fork":false,"pushed_at":"2025-07-28T00:50:27.000Z","size":868,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-17T19:35:40.774Z","etag":null,"topics":["jwt","nextjs","sso-authentication","sso-login"],"latest_commit_sha":null,"homepage":"https://demosso.theshiva.xyz/","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/ShivaBhattacharjee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-05-28T10:59:35.000Z","updated_at":"2025-08-09T18:28:06.000Z","dependencies_parsed_at":"2025-01-18T04:13:56.588Z","dependency_job_id":"d0bab3fb-65d4-4129-b868-bfe2af946582","html_url":"https://github.com/ShivaBhattacharjee/sso","commit_stats":null,"previous_names":["shivabhattacharjee/sso"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ShivaBhattacharjee/sso","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivaBhattacharjee%2Fsso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivaBhattacharjee%2Fsso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivaBhattacharjee%2Fsso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivaBhattacharjee%2Fsso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShivaBhattacharjee","download_url":"https://codeload.github.com/ShivaBhattacharjee/sso/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivaBhattacharjee%2Fsso/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277295918,"owners_count":25794402,"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","status":"online","status_checked_at":"2025-09-27T02:00:08.978Z","response_time":73,"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":["jwt","nextjs","sso-authentication","sso-login"],"created_at":"2024-11-17T09:14:59.291Z","updated_at":"2025-09-27T21:32:06.209Z","avatar_url":"https://github.com/ShivaBhattacharjee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://github.com/ShivaBhattacharjee/SSO\"\u003e\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/ShivaBhattacharjee/sso/assets/95211406/8c54dce4-3578-4e91-90b7-d4fe1e5bea63\" width=\"240px\"  alt=\"animetrix logo\" align=\"center\"\u003e\n  \u003c/a\u003e\n\u003cbr/\u003e\n  \u003ch3 align=\"center\"\u003eSSO\u003c/h3\u003e\n\n\u003cdiv align=\"center\" \u003e\n\n\n\n\n![NextJs](https://img.shields.io/badge/next.js-000000?style=for-the-badge\u0026logo=nextdotjs\u0026logoColor=white)\n[![Deno](https://github.com/ShivaBhattacharjee/sso/actions/workflows/deno.yml/badge.svg)](https://github.com/ShivaBhattacharjee/sso/actions/workflows/deno.yml)\n![jwt token](http://jwt.io/img/badge-compatible.svg)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n![GitHub repo size](https://img.shields.io/github/repo-size/shivabhattacharjee/sso)\n\n\n  \u003c/div\u003e\n\n  \u003cp align=\"center\"\u003e\n    A Single Sign-On (SSO) system built with Next.js, PostgreSQL, Prisma, and Tailwind CSS.\n    \u003cbr/\u003e\n    \u003cbr/\u003e\n    \u003ca href=\"http://demosso.theshiva.xyz/\"\u003eView Demo\u003c/a\u003e\n    .\n    \u003ca href=\"https://github.com/ShivaBhattacharjee/SSO/issues\"\u003eReport Bug\u003c/a\u003e\n    .\n    \u003ca href=\"https://github.com/ShivaBhattacharjee/SSO/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [About The Project](#about-the-project)\n- [Built With](#built-with)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n  - [Local](#local)\n    - [Update allowed domain after cloning](#update-allowed-domain-after-cloning)\n    - [Start db through docker](#start-db-through-docker)\n  - [Prisma studio](#prisma-studio)\n  - [React-Email Dev Mode](#react-email-dev-mode)\n- [Usage Demo](#usage-demo)\n- [Host your own](#host-your-own)\n- [Contributing](#contributing)\n  - [Creating A Pull Request](#creating-a-pull-request)\n- [Raising an issue](#raising-an-issue)\n- [Code of conduct](#code-of-conduct)\n- [License](#license)\n- [ScreenShots](#screenshots)\n  - [Login](#login)\n  - [Register](#register)\n    - [Visit SSO](#visit-sso)\n- [Authors](#authors)\n\n## About The Project\n![image](https://github.com/ShivaBhattacharjee/sso/assets/95211406/1ec7a2fd-eb07-4180-be05-9cb478249b4c)\n\n\nSSO is a Single Sign-On (SSO) system that allows users to seamlessly authenticate across multiple applications using a single set of credentials. Built with Next.js, PostgreSQL, Prisma, and Tailwind CSS, SSO offers a secure and efficient way to manage user authentication.\n\n## Built With\n\nSSO is built using:\n\n* [NextJS](https://nextjs.org)\n* [TailwindCSS](https://tailwindcss.com/)\n* [PostgreSQL](https://www.postgresql.org/)\n* [Prisma](https://www.prisma.io/)\n\n## Getting Started\n\n### Prerequisites\n\n\u003ca href=\"https://git-scm.com/downloads\"\u003eGit\u003c/a\u003e is a distributed version control system used for software development. It allows multiple developers to work on the same codebase simultaneously, keeping track of changes and managing versions. It also enables users to revert changes and collaborate more effectively.\n\n\u003ca href=\"https://bun.sh/\"\u003eBunJS\u003c/a\u003e is a JavaScript runtime, package manager, test runner, and bundler built from scratch using the Zig programming language. It was designed by Jarred Sumner as a drop-in replacement for Node.js. Bun uses WebKit's JavaScriptCore as the JavaScript engine, unlike Node.js and Deno, which both use V8.\n\n### Installation\n\n### Local\n```Rename .env.example to .env.local and fill the required fields```\n\n#### Update allowed domain after cloning\n\n[middleware.ts](https://github.com/ShivaBhattacharjee/sso/blob/main/src/middleware.ts)\n\nUpdate this function\n\n```bash\nconst isAllowedDomain = (hostname: string, port: string): boolean =\u003e {\n    return hostname.endsWith(\".theshiva.xyz\") || hostname === \"theshiva.xyz\" || (hostname === \"localhost\" \u0026\u0026 (port === \"\" || port === \"3000\"));\n};\n```\n\n```bash\ngit clone https://github.com/ShivaBhattacharjee/SSO\n```\n```\ncd SSO\n```\n```\nbun install\n```\n\n#### Start db through docker\n\n```bash\ndocker compose up \n```\n\n```\nbun migrate:dev\n```\n```\nbun dev\n```\nServer will start at http://localhost:3000/\n\n### Prisma studio\n```\nbun prisma:studio\n```\n\n### React-Email Dev Mode \n\n```bash\nbun email:dev\n```\n\n\n## Usage Demo\n\nVisit this [REPO](https://github.com/ShivaBhattacharjee/sso-auth-demo) to get a grasp of implementing it in your own project.\n\n## Host your own\n\n* ## Vercel\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FShivaBhattacharjee%2FSSO)\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n* ## Netlify\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/ShivaBhattacharjee/SSO)\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n* ## Render\n\n[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/ShivaBhattacharjee/SSO)\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n* If you have suggestions for adding or removing projects, feel free to [open an issue](https://github.com/ShivaBhattacharjee/SSO/issues) to discuss it\n\n* Please make sure you check your spelling and grammar.\n\n### Creating A Pull Request\n\nWanna contribute to SSO?\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/FeatureName`)\n3. Commit your Changes (`git commit -m 'Add some FeatureName'`)\n4. Push to the Branch (`git push origin feature/FeatureName`)\n5. Open a Pull Request\n\n## Raising an issue\n\nIf you're experiencing any problems with SSO, please be sure to review our [issue template](https://github.com/ShivaBhattacharjee/SSO/tree/main/.github/ISSUE_TEMPLATE) before opening a new issue. The template includes a list of questions and prompts that will help us better understand the issue you're experiencing, and it will ensure that we have all of the necessary information to investigate the problem.\n\nWe kindly ask that you provide as much detail as possible when submitting an issue, including steps to reproduce the problem, any error messages that you have seen, and any other relevant information. This will help us to identify and fix the issue more quickly.\n\nThank you for your cooperation, and we look forward to hearing from you!\n\n## Code of conduct\n\nDevelopers are requested to go through our \u003ca href=\"https://github.com/ShivaBhattacharjee/SSO/blob/main/CODE_OF_CONDUCT.md\"\u003ecode of conduct\u003c/a\u003e thoroughly to maintain a peaceful environment within our project.\n\n## License\n\nDistributed under the Apache License 2.0. See [LICENSE](https://github.com/ShivaBhattacharjee/SSO/blob/main/LICENSE) for more information.\n\n## ScreenShots\n\n### Login\n![image](https://github.com/ShivaBhattacharjee/sso/assets/95211406/65a1f562-2525-46ab-a2be-b959e12ba5b7)\n\n### Register\n![image](https://github.com/ShivaBhattacharjee/sso/assets/95211406/fc269476-88d1-4dc6-b3be-42181e6dfa35)\n\n\n#### Visit \u003ca href = \"http://demosso.theshiva.xyz/\" target=\"_blank\"\u003eSSO\u003c/a\u003e\n\n## Authors\n\n- **Shiva Bhattacharjee** - [Shiva Bhattacharjee](https://github.com/ShivaBhattacharjee) - *SSO*\n\nSee also the list of [contributors](https://github.com/ShivaBhattacharjee/SSO/contributors) who participated in this project.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivabhattacharjee%2Fsso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivabhattacharjee%2Fsso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivabhattacharjee%2Fsso/lists"}