{"id":47685956,"url":"https://github.com/coder7475/sso-clerk","last_synced_at":"2026-04-02T14:50:11.445Z","repository":{"id":343185649,"uuid":"1176587264","full_name":"coder7475/sso-clerk","owner":"coder7475","description":"proof of concept featuring clerk sso","archived":false,"fork":false,"pushed_at":"2026-03-09T08:30:50.000Z","size":211,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-09T12:43:18.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/coder7475.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-09T07:02:57.000Z","updated_at":"2026-03-09T08:30:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/coder7475/sso-clerk","commit_stats":null,"previous_names":["coder7475/sso-clerk"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/coder7475/sso-clerk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder7475%2Fsso-clerk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder7475%2Fsso-clerk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder7475%2Fsso-clerk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder7475%2Fsso-clerk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coder7475","download_url":"https://codeload.github.com/coder7475/sso-clerk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder7475%2Fsso-clerk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31308446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2026-04-02T14:50:09.466Z","updated_at":"2026-04-02T14:50:11.438Z","avatar_url":"https://github.com/coder7475.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSO Clerk POC\n\nA Proof of Concept (POC) project demonstrating Single Sign-On (SSO) integration using Clerk authentication. This is a Turborepo monorepo containing Next.js applications with Clerk as the authentication provider.\n\n## Tech Stack\n\n- **Framework**: [Next.js 16](https://nextjs.org/) with App Router\n- **Authentication**: [Clerk](https://clerk.com/)\n- **Monorepo**: [Turborepo](https://turborepo.org/)\n- **Package Manager**: [pnpm](https://pnpm.io/)\n- **Styling**: CSS Modules\n- **Deployment**: [Vercel](https://vercel.com/)\n\n## What's Inside\n\nThis monorepo includes the following apps and packages:\n\n### Apps\n\n- **web**: Main Next.js application with Clerk SSO integration\n- **docs**: Documentation site built with Next.js\n\n### Packages\n\n- **@repo/ui**: React component library shared by both applications\n- **@repo/eslint-config**: ESLint configurations\n- **@repo/typescript-config**: TypeScript configurations\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 18+\n- pnpm 9.0+\n\n### Installation\n\n```sh\npnpm install\n```\n\n### Environment Variables\n\nCopy the example environment file and configure your Clerk keys:\n\n```sh\ncp .env.local.example .env.local\n```\n\nRequired environment variables for the web app:\n\n```env\nNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_...\nCLERK_SECRET_KEY=sk_test_...\nNEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in\nNEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up\nNEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/dashboard\nNEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/dashboard\n```\n\nThen copy to apps:\n\n```sh\ncp .env.local apps/docs/\ncp .env.local apps/web/\n```\n\n### Development\n\nRun the development server:\n\n```sh\npnpm dev\n```\n\nThis will start both apps:\n- Web app: http://localhost:4000\n- Docs: http://localhost:3000\n\nTo run a specific app:\n\n```sh\npnpm dev --filter=web\npnpm dev --filter=docs\n```\n\n### Build\n\nBuild all apps and packages:\n\n```sh\npnpm build\n```\n\nTo build a specific app:\n\n```sh\npnpm build --filter=web\npnpm build --filter=docs\n```\n\n## Deployment\n\n### Vercel (Recommended)\n\nThis project is configured for deployment on Vercel with monorepo support.\n\n#### Quick Deploy\n\n1. Fork this repository\n2. Go to [Vercel](https://vercel.com/) and import the project\n3. Configure the following environment variables:\n   - `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` - Your Clerk publishable key\n   - `CLERK_SECRET_KEY` - Your Clerk secret key\n   - `NEXT_PUBLIC_CLERK_SIGN_IN_URL` - Sign-in path (e.g., /sign-in)\n   - `NEXT_PUBLIC_CLERK_SIGN_UP_URL` - Sign-up path (e.g., /sign-up)\n   - `NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL` - Post sign-in redirect (e.g., /dashboard)\n   - `NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL` - Post sign-up redirect (e.g., /dashboard)\n4. Deploy!\n\n#### Manual Setup\n\nIf you prefer to set up manually:\n\n```sh\nnpm i -g vercel\nvercel login\nvercel\n```\n\nFollow the prompts to configure your project. The `vercel.json` configuration will automatically detect the monorepo structure.\n\n#### Environment Variables on Vercel\n\nAdd the following environment variables in your Vercel project settings:\n\n| Variable | Description |\n|----------|-------------|\n| `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` | Clerk publishable key (starts with `pk_`) |\n| `CLERK_SECRET_KEY` | Clerk secret key (starts with `sk_`) |\n| `NEXT_PUBLIC_CLERK_SIGN_IN_URL` | Custom sign-in page URL |\n| `NEXT_PUBLIC_CLERK_SIGN_UP_URL` | Custom sign-up page URL |\n| `NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL` | Redirect after sign-in |\n| `NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL` | Redirect after sign-up |\n\n### Other Deployment Platforms\n\nFor other platforms, ensure you:\n\n1. Set up environment variables\n2. Configure the build command: `pnpm build`\n3. Set the output directory to `.next` (for Next.js)\n\n## Project Structure\n\n```\n.\n├── apps/\n│   ├── web/           # Main SSO web application\n│   └── docs/         # Documentation site\n├── packages/\n│   ├── ui/           # Shared UI components\n│   ├── eslint-config # ESLint configurations\n│   └── typescript-config # TypeScript configurations\n├── turbo.json        # Turborepo configuration\n├── vercel.json       # Vercel deployment configuration\n└── package.json      # Root package.json\n```\n\n## SSO Configuration\n\nThis POC demonstrates SSO with Clerk. To configure SSO providers:\n\n1. Go to [Clerk Dashboard](https://dashboard.clerk.com/)\n2. Select your application\n3. Navigate to **User \u0026 Authentication \u003e SSO**\n4. Configure your desired identity providers (Google, GitHub, Azure AD, Okta, etc.)\n\n## License\n\nMIT\n# sso-clerk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder7475%2Fsso-clerk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoder7475%2Fsso-clerk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder7475%2Fsso-clerk/lists"}